One observation: most of these functions are deprecated, not exported by 
the shared libraries, and generally evil. You should expect them not to 
work properly.

Patrick wrote:

> I use PK11_ImportPrivateKeyInfo to import a private key in the key db, and
>CERT_NewTempCertificate, CERT_AddTempCertToPerm to add the corresponding
>cert to the cert db.  I then use SECKEY_DeleteKey and
>SEC_DeletePermCertificate to delete the key and cert from the dbs. All that
>works fine.  However, if I attempt to repeat the above (re-install the the
>same key/cert in the same session), the PK11_ImportPrivateKeyInfo fails
>with: "an I/O error occurred during security authorization". And if I exit
>my app, and then run it again and try it again, the import is successfull.
>Why? Does it have something to do with the lock on the dbs?
>
>
>
>-- Patrick
>
>


Reply via email to