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

When generating self signed SSL/TLS certs, we should be including the -trustout switch #2027

Open
JedMeister opened this issue Jan 22, 2025 · 0 comments
Labels
bug core turnkey-ssl TurnKey script to generate self signed SSL/TLS certs
Milestone

Comments

@JedMeister
Copy link
Member

Currently our [turnkey-make-ssl-cert])https://github.com/turnkeylinux/turnkey-ssl/blob/master/turnkey-make-ssl-cert) script generate certificates with the content like this:

-----BEGIN CERTIFICATE-----
[...]
-----END CERTIFICATE-----

However, at least newer versions of nginx expect self signed certs be include "TRUSTED". I.e.:

-----BEGIN TRUSTED CERTIFICATE-----
[...]
-----END TRUSTED CERTIFICATE-----

I can confirm that manually making that change allows nginx to serve via https. My reading suggests that using the -trustout switch when calling openssl will automatically do that. E.g. (this is an example I found online):

openssl req -trustout -x509 -newkey rsa:4096 -sha256 -nodes -keyout privkey.pem -out fullchain.pem -days 3650
@JedMeister JedMeister added this to the 19.0 milestone Jan 22, 2025
@JedMeister JedMeister added the turnkey-ssl TurnKey script to generate self signed SSL/TLS certs label Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug core turnkey-ssl TurnKey script to generate self signed SSL/TLS certs
Projects
None yet
Development

No branches or pull requests

1 participant