docker-compose-wordpress icon indicating copy to clipboard operation
docker-compose-wordpress copied to clipboard

Nginx SSL error

Open retzion opened this issue 3 years ago • 0 comments

I generated self-signed certs as per instructions:

nginx/certs/self-signed/wordpress-docker.test+5.pem
nginx/certs/self-signed/wordpress-docker.test+5-key.pem

and I referenced them in the nginx config:

    ssl_certificate /etc/nginx/certs/self-signed/wordpress-docker.test+5.pem;
    ssl_certificate_key /etc/nginx/certs/self-signed/wordpress-docker.test+5-key.pem;

but I'm getting this error when I build

2021/08/05 15:51:43 [emerg] 1#1: cannot load certificate "/etc/nginx/certs/self-signed/wordpress-docker.test+5.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/self-signed/wordpress-docker.test+5.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)

nginx: [emerg] cannot load certificate "/etc/nginx/certs/self-signed/wordpress-docker.test+5.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/self-signed/wordpress-docker.test+5.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)

retzion avatar Aug 05 '21 15:08 retzion