tech5usa / TLSential

A server for providing short-lived TLS certificates to all services within a firewall restricted network.
GNU General Public License v3.0
15 stars 2 forks source link

Make Cert Secrets one time use. #75

Closed d1str0 closed 4 years ago

d1str0 commented 4 years ago

This PR addresses the following issues:

Fixes #74

Context

Previously, Cert secrets didn't change which increases possible exposure. Command line history, for example, could divulge the secret.

Approach

Every time a secret is used to download the privkey, the secret is reset and will need to be retrieved again for future use. This should be okay because any future need for downloading the privkey will require manual intervention on the endpoint anyways.

Testing

Try downloading the cert twice in a row with the same secret.