Quantcast
Channel: Chilkat Forum - latest questions
Viewing all articles
Browse latest Browse all 1061

Try to load PFX file into CertStore - Error: Failed to get authenticated safe

$
0
0

Hello Everybody,

I'm using FTP2 version 9.5.0.64, I try to read an private key into a certStore for use with login at a ftp via S-FTP. I just use the code from the example with the method LoadPfxFile wiht correct path and password, but I get the folloging LastErrorText:

ChilkatLog:
  LoadPfxFile:
    DllDate: Nov 12 2016
    ChilkatVersion: 9.5.0.64
    UnlockPrefix: NONE
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    VerboseLogging: 1
    pfxPath: C:\.............\<myfile>.ppk
    importPfxData:
      pkcs12FromDb:
        loadPkcs12Inner:
          verifyHmacIntegrity:
            PFX does not have MacData for integrity verification.
          --verifyHmacIntegrity
          der_to_xml:
            Found primitive SEQUENCE or SETOF in ASN.1!
            ASN data length exceeds remaining number of bytes available.
            tag: 11
            idClass: 0
            bConstructed: 1
            headerLen: 2
            dataLen: 51
            inlen: 48
            Abort ASN.1 processing...
            recursiveDepth: 2
            Abort ASN.1 processing...
            recursiveDepth: 1
          --der_to_xml
          Failed to get authenticated safe.
        --loadPkcs12Inner
      --pkcs12FromDb
    --importPfxData
    Failed.
  --LoadPfxFile
--ChilkatLog

Can you please tell me what's wrong?


Viewing all articles
Browse latest Browse all 1061

Trending Articles