Last update at :2024-06-21,Edit by888u
Snail's article "Nginx/Apache deploys NameCheap SSL certificate to implement HTTPS address method" actually records the application for a paid SSL certificate purchased by Namecheap merchants and how to deploy it to our commonly used Apache and Nginx Web website environments. method, but a few days ago Snail saw that the certificate applied for by its merchant was not just the original two certificate files, but several more files.
Originally, the Namecheap certificates we applied for were only files similar to laozuo_org.ca-bundle and laozuo_org.crt, but now the files we applied for are AddTrustExternalCARoot.crt, COMODORSAAddTrustCA.crt, COMODORSADomainValidationSecureServerCA.crt, www_example_com.crt, these four document. In fact, how to deploy it should be relatively simple. For example, we can configure the files of the corresponding website of Nginx. Everything else is the same, except how to merge these four files?
First, merge certificate files
cat www_example_com.crt COMODORSADomainValidationSecureServerCA.crt COMODORSAddTrustCA.crt AddTrustExternalCARoot.crt > laozuo.org_bundle.crt
We merge the four certificate files into laozuo.org_bundle.crt
Second, upload files to the directory
Upload laozuo.org_bundle.crt and the .key file we used when applying for the certificate to the corresponding website directory. This is not important, as long as we can find it when we configure the file.
Third, configure the certificate file
ssl on;ssl_certificate /home/wwwroot/laozuo.org/laozuo.org_bundle.crt;ssl_certificate_key /home/wwwroot/laozuo.org/laozuo.org.key;
Then when configuring the certificate file, when adding the 443 port, just add two. Other configuration files and parameters can be based on common operations. The main thing is that the two file paths must correspond to our own.
To summarize, the difference between the configuration and installation of the new version and the old version of Namecheap certificate is that the issued certificate files are different. We only need to merge them in order, and the configuration and installation are the same.
Recommended site search: US virtual host, virtual host ranking, web page registration, cheap space, domain name value evaluation, overseas host rental, agent IP purchase website, high defense server, dynamic mainland China IP agent, website domain name registration information query,
发表评论