Archived Forum Post

Index of archived forum posts

Question:

Failed to generate file. pem

Mar 11 '13 at 16:42
when run the following method
objKey.LoadPkcs8EncryptedFile (strArchivoKey, strPassword)
always returns "false"
  removing the. LastErrorText I have the following:

    ChilkatLog:
       LoadPkcs8EncryptedFile:
         DllDate: Mar 19 2009
         keyLengthInBits: 192
         numBytes: 640
         paddingScheme: 0
         algorithm: des
         outputsize: 593
         invalid length passed to BER decoder
         Invalid ASN.1 for unencrypted PKCS8.
         RsaDerLen: 0
         Error_Code: 64
         PKCS8 decrypt failed
         Failed.    
I searched for the error number, and the description:
invalid length passed to BER decoder
Invalid ASN.1 for unencrypted PKCS8.
unsuccessfully

please help me!

Answer

That's a very old version of the library (Mar, 2009) - you should retry your code with the latest version (Dec, 2012) to see if any old bug has been fixed.