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

Auto-generate certificate #1

Open
wvengen opened this issue Mar 25, 2023 · 4 comments
Open

Auto-generate certificate #1

wvengen opened this issue Mar 25, 2023 · 4 comments

Comments

@wvengen
Copy link
Owner

wvengen commented Mar 25, 2023

Right now, one needs to run a shellscript to generate a certificate.
This could be done by the program itself.

e.g. https://stackoverflow.com/a/60804101

@wvengen
Copy link
Owner Author

wvengen commented Apr 3, 2023

Currently a CA is created, the localhost-certificate is generated, and the CA's private key is removed (by default).
If browsers accept a self-signed certificate for an IP address, the CA step could be skipped, removing some complexity.

@wvengen
Copy link
Owner Author

wvengen commented Apr 3, 2023

The option to automatically add it to the CA trust list could be useful for users.
Even when added to the system trust store, it's not clear if browsers will pick this up (I think Chrome doesn't, for example, unless it is told to do so - then one can just as well import the certificate file).

https://unix.stackexchange.com/questions/90450/adding-a-self-signed-certificate-to-the-trusted-list
https://superuser.com/questions/1430089/how-to-add-a-self-signed-ssl-certificate-to-linux-ubuntu-alpine-trust-store
https://manuals.gfi.com/en/kerio/connect/content/server-configuration/ssl-certificates/adding-trusted-root-certificates-to-the-server-1605.html
https://support.mozilla.org/en-US/kb/setting-certificate-authorities-firefox

@wvengen
Copy link
Owner Author

wvengen commented Aug 10, 2023

p.s. on Firefox, it looks like one can add an exception for an unrecognized certificate, and get it to work, perhaps even without adding it to the trust store; that would be an easier route (but subject to breakage in the future, it browser behaviour changes)

@wvengen
Copy link
Owner Author

wvengen commented Mar 28, 2024

Adding private CA for Firefox (a bit involved though): https://wiki.debian.org/Firefox/PrivateCertificateAuthority

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant