Title: Virtualmin vserver with Lets Encrypt Error: http_request_failed SSL certificate
Last modified: September 1, 2016

---

# Virtualmin vserver with Lets Encrypt Error: http_request_failed SSL certificate

 *  Resolved [mruepp](https://wordpress.org/support/users/mruepp/)
 * (@mruepp)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/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](https://www.virtualmin.com/node/41060#comment-758154)
 * [https://wordpress.org/plugins/jetpack/](https://wordpress.org/plugins/jetpack/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [mruepp](https://wordpress.org/support/users/mruepp/)
 * (@mruepp)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/virtualmin-vserver-with-lets-encrypt-error-http_request_failed-ssl-certificate/#post-7471176)
 * So I guess there are two problems:
 * 1.) When Jetpack tests for ssl validity, it does not use the “servername” option
   to recognize SNI compatible certificates:
 * openssl s_client -servername virtualdomain.com -connect virtualdomain.com:443
 * 2. The Virtualmin Apache Configuration lacks to include the SSLCertificateChainFile
   in every vhost directive.
 *  Thread Starter [mruepp](https://wordpress.org/support/users/mruepp/)
 * (@mruepp)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/virtualmin-vserver-with-lets-encrypt-error-http_request_failed-ssl-certificate/#post-7471199)
 * However, the Jetpack Problem is solved by disabling the xmlrpc block in the All
   in One Firewall, and add the $_SERVER 443 Directive into WP config like described
   here:
    [https://jetpack.com/support/getting-started-with-jetpack/known-issues/](https://jetpack.com/support/getting-started-with-jetpack/known-issues/)
 * Sorry for the hassle.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Virtualmin vserver with Lets Encrypt Error: http_request_failed SSL certificate’
is closed to new replies.

 * ![](https://ps.w.org/jetpack/assets/icon.svg?rev=2819237)
 * [Jetpack - WP Security, Backup, Speed, & Growth](https://wordpress.org/plugins/jetpack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jetpack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jetpack/)
 * [Active Topics](https://wordpress.org/support/plugin/jetpack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jetpack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jetpack/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [mruepp](https://wordpress.org/support/users/mruepp/)
 * Last activity: [9 years, 12 months ago](https://wordpress.org/support/topic/virtualmin-vserver-with-lets-encrypt-error-http_request_failed-ssl-certificate/#post-7471199)
 * Status: resolved