Hello
I would like to know, if is posible to extract the private key from a
pkcs#12 file, without to import it into the keystore.
I've tried it using the next code in c++:
...
The variable p12dcx is a pointer to SEC_PKCS12DecoderContext, and it's
initializated like in the file pk12util.c
...
while (SEC_PKCS12DecoderIterateNext(p12dcx, &dip) == SECSuccess)
{
if (dip->der == NULL)
cout << "Type: " << dip->type << " dip->der ==
NULL" << endl;
else
cout << "Type: " << dip->type << " dip->der !=
NULL" << endl;
}
The result is:
Type: 163 dip->der == NULL
Type: 164 dip->der != NULL
Type: 164 dip->der != NULL
The problem is that I've been able to get the certs, but not the private
key.
Thank you very much
_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto