EldoS | Feel safer!

Software components for data protection, secure storage and transfer

About TElX509Certificate_obj.SaveKeyToBufferPEM method some questions

Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.
#5601
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.
#5609
Posted: 03/25/2008 10:00:34
by Ken Ivanov (EldoS Corp.)

Quote
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.
#5622
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.
#5623
Posted: 03/26/2008 03:33:39
by Ken Ivanov (EldoS Corp.)

What is the value of CertificateSize property?

Reply

Statistics

Topic viewed 5411 times

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




|

Back to top

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

Got it!