EldoS | Feel safer!

Software components for data protection, secure storage and transfer

About TElX509Certificate_obj.SaveKeyToBufferPEM method some questions

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
Posted: 03/25/2008 03:37:25
by  xu cong
1)TElX509Certificate.SaveTo­BufferPEM is work.
2)The PrivateKeyExists return false,and operation PrivateKeyExtractable to return NullReferenceException.
Posted: 03/25/2008 10:00:34
by Ken Ivanov (Team)

The PrivateKeyExists return false

This means that the private key is not available, so you cannot save it.

If you are sure that the original PFX does include a private key, please re-check that the certificate is loaded correctly (i.e. that LoadFromStreamPFX returns 0). You can alternatively check if the certificate has been loaded correctly by checking the value of TElX509Certificate.CertificateSize property.
Posted: 03/26/2008 03:18:37
by  xu cong
I'm sure that the original PFX does include a private key,
and that LoadFromStreamPFX returns 0.
But I do not know why The PrivateKeyExists return false.
Posted: 03/26/2008 03:33:39
by Ken Ivanov (Team)

What is the value of CertificateSize property?



Topic viewed 5964 times

Number of guests: 8, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!