Closed Bug 86787 Opened 24 years ago Closed 24 years ago

SECKEY_ConvertAndDecodePublicKey(): Failed to load public key DER file produced by openssl

Categories

(NSS :: Libraries, defect)

3.2.1
Sun
SunOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: aleksey, Assigned: wtc)

Details

Steps to reproduce: 1) create public key ring DER file using by openssl v 0.9.1 using following commands inside openssl: OpenSSL>genrsa -out private.pem OpenSSL>rsa -in private.pem -outform DER -pubout -out public.der 2) base64 encode this file (for example, using 'btoa' tool from NSS/bin folder) 3) try to load the result file using SECKEY_ConvertAndDecodePublicKey() function As the result, this function will return NULL. Further investigation shows that SECKEY_DecodeDERPublicKey function failed to decode DER file on the second tag inside this file because of wrong tag number. Probably, this bug is similar to bug# 80416 but I am not an expert and I would like to have confirmation from NSS guys.
DER format from OpenSSL really is 'PKCS #1 RSA Encryption', plain der key is inside this envelope.
Status: UNCONFIRMED → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Summary: SECKEY_ConvertAndDecodePublicKey(): Failed to load public key DER file produced by openssl → SECKEY_ConvertAndDecodePublicKey(): Failed to load public key DER file produced by openssl
You need to log in before you can comment on or make changes to this bug.