A
A
Artyom_Kopan2021-11-22 21:40:27
Cryptography
Artyom_Kopan, 2021-11-22 21:40:27

Why can't Openssl decrypt RSA?

I created a pair of ssh keys using the rsa algorithm, as described in this article. And then I tried to decrypt it with openssl: In theory, the key parameters should be displayed, but I get this error:
ssh-keygen -t rsa -N '' -f test_rsa
openssl asn1parse -in test_rsa

0:d=0  hl=2 l= 112 cons: appl [ 15 ]       
    2:d=1  hl=2 l= 110 cons: appl [ 5 ]        
Error in encoding
139838135571776:error:0D07209B:asn1 encoding routines:ASN1_get_object:too long:../crypto/asn1/asn1_lib.c:91:

How can this be fixed?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question