ssl - Nginx install intermediate certificate -
i'm trying install intermediate certificate on nginx ( laravel forge ). right certificate installed, intermediate missing.
i've seen need concatenate current certificate intermediate. best/safest way add intermediate certificate.
also, if install of intermediate failed, can roll previous certificate, , reboot nginx? ( website site live, can't have long downtime )
nginx expects server section certificates in file refer ssl_certificate. put vendor's intermediate certificates , domain's certificate in file. it'll this.
-----begin certificate----- mii... -----end certificate----- -----begin certificate----- mii... -----end certificate----- -----begin certificate----- mii... -----end certificate----- to make sure okay , avoid downtime, suggest setup nginx locally, add 127.0.0.1 yourdomain.com /etc/hosts, , try open major browsers. when you've verified correct can replicate production server.
when you're done, idea use ssl checker tool verify (e.g. this one). because pre-installed ca certificates may vary depending on browser , platform, can overlook misconfiguration checking 1 os or limited set of browsers.
edit
as @martin pointed out, order of certificates in file important. rfc 4346 tls 1.1 states:
this sequence (chain) of x.509v3 certificates. sender's certificate must come first in list. each following certificate must directly certify 1 preceding it.
thus order is:
- 1. domain's certificate
- 2. vendor's intermediate certificate certifies (1)
- 3. vendor's intermediate certificate certifies (2)
- ...
- n. vendor's root certificate certifies (n-1). optional, because should contained in client's ca store.
Comments
Post a Comment