docker-nginx-http3 icon indicating copy to clipboard operation
docker-nginx-http3 copied to clipboard

can not load certificate key, but officail nginx can load certificate key

Open Kennytian opened this issue 1 year ago • 2 comments

Environment: 
Ubuntu 20
Docker version 24.0.7

2023/12/27 01:02:33 [emerg] 32#32: cannot load certificate key "/etc/nginx/./../ssl/my.key": BIO_new_file() failed (SSL: error:0200000d:system library:OPENSSL_internal:Permission denied:fopen('/etc/nginx/./../ssl/my.key','r') error:11000070:BIO routines:OPENSSL_internal:SYS_LIB) nginx: [emerg] cannot load certificate key "/etc/nginx/./../ssl/my.key": BIO_new_file() failed (SSL: error:0200000d:system library:OPENSSL_internal:Permission denied:fopen('/etc/nginx/./../ssl/my.key','r') error:11000070:BIO routines:OPENSSL_internal:SYS_LIB)

Kennytian avatar Dec 27 '23 01:12 Kennytian

chmod 644 my.key

I will try it later

Kennytian avatar Dec 27 '23 02:12 Kennytian

official image uses root user to read/write files i used user: root so it can be used temporarily, correct fix is to chown all nginx files to nginx user or "100:101"

vincejv avatar Jun 21 '24 22:06 vincejv

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Aug 05 '24 02:08 github-actions[bot]