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

Improve TLS configuration for certs #84

Open
massenz opened this issue Feb 25, 2023 · 0 comments
Open

Improve TLS configuration for certs #84

massenz opened this issue Feb 25, 2023 · 0 comments

Comments

@massenz
Copy link
Owner

massenz commented Feb 25, 2023

Currently the location of the TLS cryptographic material (certificate and keys) is in a fixed location (/etc/statemachine/certs) and we only have the -insecure flag to disable TLS.

We should have a more flexible setup - continuing to enable TLS by default and keeping the default location, however we should also allow:

  • keep the -insecure flag to disable TLS;
  • add a -tlsCertFile for the X509 cert;
  • add a -tlsKeyFile for the certificate private key;
  • add a -tlsCAFile for an (optional) Certificate Authority root file (self-signed certs)

If not configured, the defaults will be:

/etc/statemachine/certs/server.pem for the certificate
/etc/statemachine/certs/server-key.pem for the private key
No CA file (roots as installed by the host OS)

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