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

ValueError: RSA key format is not supported #18

Open
ZhuoZhuoCrayon opened this issue Aug 2, 2023 · 1 comment
Open

ValueError: RSA key format is not supported #18

ZhuoZhuoCrayon opened this issue Aug 2, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ZhuoZhuoCrayon
Copy link
Member

No description provided.

@ZhuoZhuoCrayon ZhuoZhuoCrayon added the bug Something isn't working label Aug 2, 2023
@ZhuoZhuoCrayon ZhuoZhuoCrayon self-assigned this Aug 2, 2023
@ZhuoZhuoCrayon
Copy link
Member Author

from django.conf import settings
from bkcrypto.asymmetric.ciphers.rsa import RSAAsymmetricCipher

# ValueError
RSAAsymmetricCipher(private_key_string=settings.RSA_PRIV_KEY)

# Normal
RSAAsymmetricCipher(private_key_string=settings.RSA_PRIV_KEY.strip("\n"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant