Skip to content

Conversation

@Sm0k3scr33n
Copy link

@Sm0k3scr33n Sm0k3scr33n commented Feb 20, 2020

This adds the key values to the Tls and backed Tls structs to decrypt encrypted certificate keyfiles. I will add the logic to the tls.go file in a future pull request.

The use case would be an instance where a TLS certificate is encrypted with a password to further protect it from misuse. Current state go between does not handle this functionality that I can see and there is no parameter in the configuration for a password.
1. we need to add a  add a cert_pass parameter to the config type to place a plain text password
2. reference the cert_pass parameter from the config in the MakeBackendTLSConfig and map to the password field where required by decryptPEMBlock()
These will be used to reference the password file or password string used to decrypt  as password protected certificate keyfile
fixing a typo for the key_pass_path and key_pass in the Tls Struct
my travis build failed. will work on this later
another typo. remaking a new PR
@Sm0k3scr33n
Copy link
Author

@yyyar I believe this PR for the config file modifications is probably ready for review.

@Sm0k3scr33n
Copy link
Author

@yyyar I will start working on the logic for the tls.go package this weekend

@illarion illarion marked this pull request as draft July 7, 2020 13:34
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

Successfully merging this pull request may close these issues.

1 participant