I have only PEM file i need put security in origin

ssl

#1

I have my own CSR, and put in crypto section:

“/usr/local/nginx/conf/ssl/conexionmas.com.crt”
nginx.

I have this configs:

server {
listen 80;
listen 443 ssl http2;
ssl_certificate /usr/local/nginx/conf/ssl/conexionmas.com.crt;
ssl_certificate_key /usr/local/nginx/conf/ssl/conexionmas.com.key;

in that config how can put PEM file, im ubuntu


#2

Here you go

Or here

Just make sure that the file path in your config is correct and that the PEM file contains the key as well


#3

i do it your steps:

cp /usr/local/nginx/conf/ssl/conexionmas.com.crt /usr/local/nginx/conf/ssl/conexionmas.com-old.crt

cp /usr/local/nginx/conf/ssl/conexionmas.com-old.crt /usr/local/nginx/conf/ssl/conexionmas.com.chained.crt

edit this last file, and put in together key and pem

[email protected]:~# sudo /etc/init.d/nginx restart
Restarting nginx: nginx: [warn] “ssl_stapling” ignored, issuer certificate not found for certificate “/usr/local/nginx/conf/ssl/conexionmas.com.chained.crt”
nginx.