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

Support PKCS1 and PKCS8 private keys #843

Merged
merged 2 commits into from
Nov 5, 2021
Merged

Support PKCS1 and PKCS8 private keys #843

merged 2 commits into from
Nov 5, 2021

Conversation

lkysow
Copy link
Member

@lkysow lkysow commented Nov 4, 2021

For server ca cert

Fixes #575

Checklist:

  • Tests added
  • CHANGELOG entry added

    HashiCorp engineers only, community PRs should not add a changelog entry.
    Entries should use present tense (e.g. Add support for...)

@lkysow lkysow requested review from a team, kschoche and sadjamz and removed request for a team November 5, 2021 16:56
@lkysow lkysow marked this pull request as ready for review November 5, 2021 16:56
-----END RSA PRIVATE KEY-----`

// caKeyPKCS8 is caKeyRSA converted to PKCS8 form.
caKeyPKCS8 string = `-----BEGIN PRIVATE KEY-----
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cant wait to get daily emails from dependabot on these :D

Copy link
Contributor

@kschoche kschoche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

Love the tests as well :D

@lkysow lkysow merged commit a3d023d into main Nov 5, 2021
@lkysow lkysow deleted the lkysow/tls-certs branch November 5, 2021 19:12
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.

TLS Util: Support parsing PKCS1 and PKCS8 private keys
3 participants