Destramic Posted September 30, 2016 Share Posted September 30, 2016 hey guys im getting an nginx error message when trying to use ssl on my server: [emerg] 3108#6408: SSL_CTX_use_PrivateKey_file("C:\Users\Server\Desktop\host\myterms.co.uk\nginx/conf/ssl/myterms_co_uk.key") failed (SSL: error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch) i've added the following to my nginx config: ssl_certificate ssl/domain.ca-bundle; ssl_certificate_key ssl/domain.key; domain.ca-bundle - my certificate bundle sent to me from comododomain.key - my private key generated with my RSA key i've search the net, and i read that the i need to remove passphrase from key openssl rsa -in domain.key -out newkey.pem but that didnt work either any help would be appreciated as i'm truly stuck now. thank you Quote Link to comment https://forums.phpfreaks.com/topic/302257-ssl-niginx-error/ Share on other sites More sharing options...
Solution requinix Posted September 30, 2016 Solution Share Posted September 30, 2016 Make sure the bundle has the certificates in the right order: nginx expects yours at the top and the rest of the chain after. 1 Quote Link to comment https://forums.phpfreaks.com/topic/302257-ssl-niginx-error/#findComment-1537912 Share on other sites More sharing options...
Destramic Posted September 30, 2016 Author Share Posted September 30, 2016 Make sure the bundle has the certificates in the right order: nginx expects yours at the top and the rest of the chain after. it appears the bundle sent from comodo was put together wrong. i had to put my domain cert with my intermediate certificates in order and finally convert to .pem not going to lie, it was tough but it worked thanks for the good advise requinix Quote Link to comment https://forums.phpfreaks.com/topic/302257-ssl-niginx-error/#findComment-1537914 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.