Virtualmin vserver with Lets Encrypt Error: http_request_failed SSL certificate
-
I host a site on a virtualmin server. I have the maindomain.com which is the main server certificate and is a ssl site as well.
Then I run a virtualdomain.com which is a virtualhost domain in apache which gets the letsencrypt certificate as well.
Both Sites are accessible and have a valid ssl certificate according all popular browsers.I install wordpress in virtualdomain.com and want to activate jetpack:
IXR -32300: transport error: http_request_failed SSL certificate problem: unable to get local issuer certificate]When I run openssl s_client -connect virtualdomain.com:443 the connection returns:
CONNECTED(00000003)
depth=0 /CN=maindomain.com
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 /CN=maindomain.com
verify error:num=27:certificate not trusted
verify return:1
depth=0 /CN=maindomain.com
verify error:num=21:unable to verify the first certificate
verify return:1
—
Certificate chain
0 s:/CN=maindomain.com
i:/C=US/O=Let’s Encrypt/CN=Let’s Encrypt Authority X3
..
Verify return code: 21 (unable to verify the first certificate)When I create a certchain file of intermediate and root CA and add the SSLCertificateChainFile /home/maindomain.com/chain.crt at least the openssl error goes away but the virtualdomain.com jetpack is still not working because it expects virtualdomain.com ssl verification.
When I add the chain.crt to the virtual servers SSL Directive SSLCertificateChainFile /home/virtualdomain.com/chain.crt nothing changes because the openssl s_client -connect virtualdomain.com:443 defaults to maindomain.com
This is a problem I am not sure how to overcome.
Here the link to the virtualmin forum I posted this topic as well:
https://www.virtualmin.com/node/41060#comment-758154
- The topic ‘Virtualmin vserver with Lets Encrypt Error: http_request_failed SSL certificate’ is closed to new replies.