I am setting up a website that uses the WP Encrypt plugin for WordPress to generate Letsencrypt certs in Apache 2.4.6 on Linux. The plugin is working and it generates two files:
When I configure apache to use these two files with the lines:
Apache will no longer start. The Apache error logs show:
[Thu Sep 13 12:34:30.457260 2018] [ssl:emerg] [pid 26858] AH02241: Init: Unable to read server certificate from file /pathtowebroot/letsencrypt/live/account/public.pem
[Thu Sep 13 12:34:30.457310 2018] [ssl:emerg] [pid 26858] SSL Library Error: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
[Thu Sep 13 12:34:30.457325 2018] [ssl:emerg] [pid 26858] SSL Library Error: error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error (Type=X509)
[Thu Sep 13 12:34:30.457333 2018] [ssl:emerg] [pid 26858] AH02312: Fatal error initialising mod_ssl, exiting.
I have tried copying the two pem files to other directories like /etc/pki/certs/… and double check permissions and still getting the same errors.
I’ve tried looking around for this problem and haven’t been able to find a solution. Hoping somebody has seen this or knows what we can try.
Thanks for the help.