docker-nginx-http3
docker-nginx-http3 copied to clipboard
can not load certificate key, but officail nginx can load certificate key
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)
chmod 644 my.key
I will try it later
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"
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.