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

dump() not handling RSA keys correctly? #24

Open
FGasper opened this issue Jan 6, 2016 · 0 comments
Open

dump() not handling RSA keys correctly? #24

FGasper opened this issue Jan 6, 2016 · 0 comments

Comments

@FGasper
Copy link

FGasper commented Jan 6, 2016

openssl genrsa 2>/dev/null | perl -MConvert::ASN1 -MMIME::Base64 -MYAML::Syck -e'use bytes; my $k = do{ local $/; <>}; $k =~ s<^-.+?$><>msg; $k = MIME::Base64::decode($k); print Convert::ASN1::asn_dump($k)'
0000 1187: SEQUENCE {
0004    1:   INTEGER = 0
0007  257:   INTEGER = -1
010C    3:   INTEGER = 65537
0111  256:   INTEGER = -1
0215  129:   INTEGER = -1
0299  129:   INTEGER = -1
031D  128:   INTEGER = -1
03A0  128:   INTEGER = -1
0423  129:   INTEGER = -1
04A7     : }

Those -1 values are actually “big integers”.

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

1 participant