easyengine icon indicating copy to clipboard operation
easyengine copied to clipboard

SSL - servers certificate chain is not installed correctly

Open shaneholloman opened this issue 12 years ago • 7 comments

https://www.wormly.com/test_ssl/h/retrocutie.com/i/104.131.175.19/p/443

I'm not too sure how to address this - any advice. I followed your instructions so far and all seems well except for this issue

I have 2 more issue files I haven't referenced at all in EE, they issued with my Key from StartSSL cert company: ca.pem sub.class1.server.ca.pem

Would stapling help this? https://raymii.org/s/tutorials/OCSP_Stapling_on_nginx.html

shaneholloman avatar Dec 03 '14 12:12 shaneholloman

It look like your Certificate chain is broken. https://rtcamp.com/wordpress-nginx/tutorials/ssl/thawte/#step-3-fixintermediate-certificate-chain This link will surely help you.

gau1991 avatar Dec 03 '14 14:12 gau1991

I had the same issue with my certificate chain and I realized somehow my domain.com.crt file had more than 4 certificate blocks in it (8 actually!), so I (1) renamed my bundle.crt and domain.com.crt files (to back them up basically) and (2) created new files via: sudo vim gd_bundle.crt (then pasted the contents from my bundle file provided by the CA) and created a new domain.com.crt (and pasted the contents directly from the crt file from my CA) and (3) then ran the combine script again ( cat gd_bundle.crt >> domain.com.crt ) and (HURRAY!) I was left with a proper domain.com.crt file which has 4 certificate blocks in it - which seems to work well and I'm getting an A on SSLLABS.com ( https://www.ssllabs.com/ssltest/analyze.html?d=iowish.com&hideResults=on ).

Once you get the certificate chain issue figured out, you'll want to (4) disable SSLv3 support to prevent POODLE attacks (my score was a C prior to doing this) and you'll be more PCI compliant for doing so. I found the solution below from: https://scotthelme.co.uk/sslv3-goes-to-the-dogs-poodle-kills-off-protocol/ . Regarding TLS_FALLBACK_SCSV to prevent downgrade attacks, my research finds that this can cause legitimate requests to use a different ssl method to fail, leading to failed checkout scenarios. The fact that you have disabled SSLv3 with the method below means no man-in-the-middle attack could ever get the client browser to use that vulnerable method. And only a small portion of XP/IE6 users need SSLv3 - and that browser is not compatible with your site anyway, so it's best to get rid of it. Here's the disable script for SSLv3 .. NginX

Disabling SSLv3 support on NginX is also really easy.

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

Similar to the Apache config above, you will get TLSv1.0+ support and no SSL. You can check the config and restart.

sudo nginx -t

sudo service nginx restart

On Wed, Dec 3, 2014 at 8:20 AM, Gaurav Ashtikar [email protected] wrote:

It look like your Certificate chain is broken.

https://rtcamp.com/wordpress-nginx/tutorials/ssl/thawte/#step-3-fixintermediate-certificate-chain This link will surely help you.

— Reply to this email directly or view it on GitHub https://github.com/rtCamp/easyengine/issues/374#issuecomment-65413592.

MattyLB avatar Dec 03 '14 18:12 MattyLB

@MattyLB Thanks for this explanation! I have got Poodle vulnerability handled - RESOLVED

However the concatenation of files is not clear to me as I was issued .pem files - are these the same as .crt files?

These are the files I was issued: ca.pem sub.class1.server.ca.pem and the .key file of course Which files concatenate then? and in which order?

Thank you guys : )

shaneholloman avatar Dec 04 '14 02:12 shaneholloman

@shaneholloman - glad to help! regarding the .pem files provided by your CA, I don't believe they are correct without seeing the structure of their contents (which I don't want you to share as they should never be shared, lol) - however, my initial assumption in my first post was that you had followed the (#awesome) tutorial that rtcamp posted on SSL certificates that worked brilliantly for me. If not, here is the link ( https://rtcamp.com/wordpress-nginx/tutorials/ssl/godaddy/ ) and what I mentioned earlier may start making more sense as you follow the instructions it lays out. Best of luck!

MattyLB avatar Dec 04 '14 21:12 MattyLB

This all makes sense - but I need someone that can shed some light on the .pem files

Does anyone here know for sure how to work with these files?

shaneholloman avatar Dec 04 '14 22:12 shaneholloman

ok found this! https://www.startssl.com/?app=42 Looks like it will solve this. I will report back

shaneholloman avatar Dec 04 '14 22:12 shaneholloman

Resolved! using very carefully: https://www.startssl.com/?app=42

Thank you @MattyLB : )

shaneholloman avatar Dec 04 '14 22:12 shaneholloman