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

x509.DecryptPEMBlock has been deprecated since Go 1.16 #45

Open
oxisto opened this issue Jul 31, 2021 · 3 comments
Open

x509.DecryptPEMBlock has been deprecated since Go 1.16 #45

oxisto opened this issue Jul 31, 2021 · 3 comments

Comments

@oxisto
Copy link
Collaborator

oxisto commented Jul 31, 2021

We should remove/replace it, to be compatible with future Go versions.

@oxisto oxisto changed the title x509.DecryptPEMBlock has been deprecated since Go 1.16 x509.DecryptPEMBlock has been deprecated since Go 1.16 Jul 31, 2021
@oxisto
Copy link
Collaborator Author

oxisto commented Jul 31, 2021

It looks like there is no alternative in the Go standard library, so we are somewhat stuck here. Not sure how many people actually use ParseRSAPrivateKeyFromPEMWithPassword, it is in the utils file and primarily used for a test. We should at least deprecate it and remove it in a future version, i.e. v4 or v5.

@HimanshuSharma-Angel
Copy link

Any alternative library?

@oxisto
Copy link
Collaborator Author

oxisto commented Jun 23, 2023

Any alternative library?

I am afraid we don’t want the hassle of including anything else but the standard library. Especially for something which is not really part of the “public” API.

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

No branches or pull requests

2 participants