ERROR:
SSL error: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch
STEPS:
openssl genrsa -out SITE.TLD.key 2048
openssl req -new -key SITE.TLD.key -out SITE.TLD.csr
(send CSR to SSL site to sign)
add CERT to SITE.TLD.crt
add CA to SITE.TLD.ca
chained them:
cat SITE.TLD.crt SITE.TLD.ca > chained.cert
Any Idea what I am doing wrong? I am using LiteSpeed HTTPd
Best Answer
First check that private key indeed matches by looking at the modulus
diff <(openssl rsa -in KEY -modulus -noout) <(openssl x509 -in CERT -modulus -noout) should produce no output