SCM

[#1010703] RSA private key load to use SSL client authentication

View Trackers | Patches | Download .csv | Monitor

Date:
2009-09-11 11:16
Priority:
3
State:
Open
Submitted by:
Bence Galat (postrike)
Assigned to:
Nobody (None)
Category:
Group:
Resolution:
None
 
Summary:
RSA private key load to use SSL client authentication

Detailed description
It seems, private key can not be extracted from client certificate, so it throws
a IOException says 'The authentication or decryption has failed.'

The class I have made (PrivateKeySetup)can load the privata key parameters from an unenrypted RSA pem key file and setups a RSA that can decrypt the stream.

Just add the PrivateKeySelectionCallback delegate to your connection instance
and use the PrivateKeySetup.PrivateKeyLoad(filepath) method to setup an RSA instance.

Bence Galat

Followup

Message
Date: 2009-09-17 12:06
Sender: Bence Galat

Sorry for the delay.

I have made a simple demo that opens a connection
loads the key and the certificate then closes it.


Date: 2009-09-12 23:13
Sender: Francisco Figueiredo jr.


Thank you very much!

Would you mind to write a simple test case which shows how to use your class?

I'd like to add it to our user manual so other users can benefit from it and know how to use it.

Attached Files:

Attachments:
PrivateKeySetup.cs
PrivateKeyTest.zip

Changes:

Field Old Value Date By
File Added428: PrivateKeyTest.zip2009-09-17 12:06postrike
File Added426: PrivateKeySetup.cs2009-09-11 11:16postrike
Powered By FusionForge