News  [SoftwareSite

Latest News
Older News
RSS Feed
 
Complete Projects
Useful Classes
Top Downloads
Message Board
AllAPI.net
 
Send Comments
Software License
Mentalis.org Buttons
Donate
 
Forums -> Security Library Forum
 
Need help with SSL  
by Andrew Deren [andrew at adersoftware dot com]
posted on 2004/08/12

I need to implement ssl communication with a server. I need to exchange some data on a specific port. They supplied me with .pem file.
I'm not sure how to use the package to use the .pem file and establish connection to exchange data.
Does anyone have any sample on this?
I looked at the samples that come with this library, but couldn't find anything what to do with .pem files.
Thanks.

by Pieter Philippaerts [Pieter at mentalis dot org]
posted on 2004/08/17

The Security Library only supports extracting public certificates (and not their private keys) from a PEM file (look at the Certificate.CreateFromPemFile method for details).

However, in your case you also need to access the private parts of the PEM file. You'll have to convert the certificate to a type that the CryptoAPI can handle, as described in http://www.mentalis.org/forum/thread.qpx/62

 

Copyright © 2002-2007, The Mentalis.org Team. All rights reserved.
This site is located at http://www.mentalis.org/
Send comments to the webmaster.