I created own Certificate Authority and server (virtualhost) certificate based on this specification: https://jamielinux.com/docs/openssl-certificate-authority/index.html
It's successfully created, it works, but server-certificate not working without "www" prefix.
If I load domain without "www", get an error:
SSL_ERROR_BAD_CERT_DOMAIN
I checked several pages longer, option would have (SAN - Subject Alternative Names), just do not know how to insert the above configuration.