Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[emerg] No such file or directory:fopen('/etc/nginx/certs/ssl.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file #5

Closed
sar opened this issue Apr 24, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sar
Copy link
Owner

sar commented Apr 24, 2021

nginx path /etc/nginx/certs/ expects default extension crt, workaround: users have to manually rename emitted file by generate_certs.sh

offending line

https://github.com/DigitalTransformation/vs-code-container-with-ssl/blob/215a095e51d3cfd17d45d223d1d4084f24a7cbf2/scripts/generate_certs.sh#L11

trace

code.proxy | forego     | starting nginx.1 on port 5200
code.proxy | forego     | sending SIGTERM to dockergen.1
code.proxy | forego     | sending SIGTERM to nginx.1
code.proxy | forego     | starting dockergen.1 on port 5000
code.proxy | forego     | starting nginx.1 on port 5100
code.proxy | nginx.1    | 2021/04/24 01:20:31 [emerg] 27#27: cannot load certificate "/etc/nginx/certs/ssl.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/ssl.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
code.proxy | forego     | starting nginx.1 on port 5200
code.proxy | forego     | sending SIGTERM to dockergen.1
code.proxy | forego     | sending SIGTERM to nginx.1
@sar sar added the bug Something isn't working label Apr 24, 2021
@sar sar self-assigned this Apr 24, 2021
@sar
Copy link
Owner Author

sar commented Apr 24, 2021

update default filename to ssl.key

trace

code.proxy | forego     | starting nginx.1 on port 5200
code.proxy | forego     | sending SIGTERM to dockergen.1
code.proxy | forego     | sending SIGTERM to nginx.1
code.proxy | forego     | starting dockergen.1 on port 5000
code.proxy | forego     | starting nginx.1 on port 5100
code.proxy | nginx.1    | 2021/04/24 01:26:27 [emerg] 27#27: cannot load certificate key "/etc/nginx/certs/ssl.key": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/certs/ssl.key','r') error:2006D080:BIO routines:BIO_new_file:no such file)
code.proxy | forego     | starting nginx.1 on port 5200
code.proxy | forego     | sending SIGTERM to dockergen.1
code.proxy | forego     | sending SIGTERM to nginx.1

@sar sar closed this as completed in 19b8dc7 Apr 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant