teamhephy / controller

Hephy Workflow Controller (API)
https://teamhephy.com
MIT License
14 stars 26 forks source link

Validate RSA certificate-key pairing before storage #169

Closed daniel-wachira closed 2 years ago

daniel-wachira commented 2 years ago

Trivially validates that an incoming certificate and private key are compatible before storage. Only RSA validation is provided. This is a fix for https://github.com/teamhephy/controller/issues/168

Cryptophobia commented 2 years ago

Thank you @daniel-wachira , closing in favor of https://github.com/teamhephy/controller/pull/170

Took your commit and added small linting fixes and removing pkey from memory, not sure if needed.