تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
5738 أدوات العرض

I have a confusion with ssl certificate file. How can i add ssl_certicate (.crt) file to NGINX configuration .

الصورة الرمزية
إهمال
أفضل إجابة

Hi,
You will get a generated certificate in a .pem file with a key or which consists of a ssl_certificate.crt IntermediateCA.crt file with the key. If you get .pem file, we can directly add the path of the file to the NGINX configuration as follows

ssl_certificate /etc/ssl/nginx/cert_bundle.pem;
cert_bundle.pem is the concatenated file of .crt files. If .pem file is not provided then we need to concatenate those files and add it to the path.
To concatenate the files,use the following code:  

cat ssl_certificate.crt IntermediateCA.crt >> bundle.crt
To know more about SSL configuration using NGINX visit the blog below

https://www.cybrosys.com/blog/how-to-configure-ssl-certificate-in-nginx

الصورة الرمزية
إهمال