开发者

OPENSSL and private key

开发者 https://www.devze.com 2023-01-19 03:51 出处:网络
Openssl is a great security library and I use it from time to time. When I generate RSA keys I have RSA object with private and public key data. OK. Fine. I\'m happy with that. I can print private ke

Openssl is a great security library and I use it from time to time. When I generate RSA keys I have RSA object with private and public key data. OK. Fine. I'm happy with that. I can print private key to the printer. And here come's the question.

Is it possible to 开发者_开发百科create a valid RSA object only from the entered private key (RSA->n)? I made key check and it asks for a valid p and q. OK. I entered p and q. But encrypting is not working properly...any ideas?

TIA!


Did you make sure you entered p and q primes?


I worked it out. RSA object must have 5 valid variables: n, p, q, d and e. Thanks!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号