Certificate not secure on subdomain?

hello i've created this
https://testjenkins.smartit.it/

and used certificate for smartit.it but is not ssl secure why ?

Because the subdomain isn't included in the certificate?

hello but not exists 1 certificate for all subdomain?

Your certificate only covers smartit.it. Why would you think it would be valid for any other name?

No.
Only the names on the cert will be matched.

And right now that is just the one name:

Even the WWW redirection is a fail:

curl -Iki http://www.smartit.it
HTTP/1.1 301 Moved Permanently
Date: Mon, 18 Jan 2021 00:34:48 GMT
Server: Apache/2.4.25 (Debian)
Location: https://www.smartit.it/
Content-Type: text/html; charset=iso-8859-1

Of course, you seem to be cornered into having to use the WWW address:

Name:      smartit.it
Addresses: 62.149.128.163
           62.149.128.166
           62.149.128.151
           62.149.128.154
           62.149.128.157
           62.149.128.160

Name:    www.smartit.it
Address: 54.74.176.126