Is there a best practice for storing certificates (e.g. x509), which include private keys, used in unit tests?
https://softwareengineering.stackexchange.com/questions/387813
-
21-02-2021 - |
Pergunta
In a software library, I wrote, large parts of the code use x509 certificates for various puprposes like signing documents digitally.
Is there a best practice for storing test certificates used for the unit tests? Should they be stored in git/the same versioning system where the code is?
Solução
Certificates are small. And there is no problem with security if they are only used for testing.
So I see no problem storing them in source control.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a softwareengineering.stackexchange