Archived Forum Post

Index of archived forum posts

Question:

Load Private Key And Sign A String From Encrypted File

Aug 06 '12 at 08:55

If I have saved "privatekey.pem" without passwaord, I do This

Dim pkey As New privateKey

pkey.LoadPemFile "PrivateKey.pem"

If it was saved like this :

privkey.SaveRsaPemFile "privateKey.pem"

Longo = privkey.SavePkcs8EncryptedFile("cavalo", "ChavePrivada.pem") Quetion: How can i load the "ChavePrivada.pem"


Answer

The privkey.LoadPkcs8EncryptedFile would be used to load an encrypted private key saved via the privkey.SavePkcs8EncryptedFile method.