HTTPS/SSL Certificate Error DLG_FLAGS_INVALID_CA

Hello all, I’m trying to work this out, but I will need some help from you guys.

I’m running apache2 on Debian 9, the apache web server is behind an f5 BIG-IP that does load balancing and manage the SSL encryption and decryption for the apache web server.

The certificate is installed on F5 but when I try to reach the web page I get this error:

"Your PC doesn’t trust this website’s security certificate. The hostname in the website’s security certificate differs from the website you are trying to visit. Error Code: DLG_FLAGS_INVALID_CA DLG_FLAGS_SEC_CERT_CN_INVALID "

in the certificate the domain assigned is *.mysite.com

on the apache2 web server I’ve tried the following:

in apache2.conf I’ve tried to define ServiceTokens FULL SecServerSignature ";

In /enabled-website/000-default.cof: ServerName mywebsite.com ServerAlias *.mywebsite.com

but still throwing that error, could you please help me with this?

Regards, Valerio

Small mistake, “in the certificate the domain assigned is *.mysite.com” will be *.mywebsite.com

For the error that you are facing, you can check out for the error solution at:-  https://cheapsslweb.com/blog/how-to-fix-dlg_flags_sec_cert_cn_invalid/.

I hope it helps!