Patches
Search the entire project
This project's trackers
This project's forums
This project's tasks
This project's releases
This project's documents
This project's news
Project
People
Skill
Advanced search
Log In
|
New Account
Home
My Page
Projects
Code Snippets
Project Openings
Npgsql .Net Data Provider for Postgresql
Summary
Activity
Forums
Tracker
Lists
Tasks
Docs
Surveys
News
SCM
Files
[#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 Added
428: PrivateKeyTest.zip
2009-09-17 12:06
postrike
File Added
426: PrivateKeySetup.cs
2009-09-11 11:16
postrike