DEV Community

If installing SSL certificate on an Nginx webserver - don't forget this step

Moya Richards on February 24, 2020

STUPID BROWSERS ... I spent way too long troubleshooting an SSL certificate error. My issue, PostMan would not work, but the URL worked when I vis...
Collapse
 
moyarich profile image
Moya Richards

Do you use the Apache webserver?

In apache we used to able to use a separate directive SSLCertificateChainFile for the bundle file, but SSLCertificateChainFile is depreciated now.

The SSLCertificateFile directive has been extended to also load the server certificate file plus the intermediate CA certificates


on Windows use the command below to create a PEM format file containing the SSL certificate and the certification chain

copy ssl_certificate.crt + IntermediateCA.crt certbundle.pem /b

In the apache web server virtual host file for SSL add:

SSLCertificateFile "c:/Apache24/conf/ssl/2020/certbundle.pem"

Do not use: --------------------

  • SSLCertificateFile "c:/Apache24/conf/ssl/2020/ssl_certificate.crt"
  • SSLCACertificateFile "c:/Apache24/conf/ssl/2020/IntermediateCA.crt"
Collapse
 
hassantahir01 profile image
Hassan Tahir

Very helpful tutorial.

Collapse
 
nguyenthanhuet profile image
Alex

Thank you very much :D