login about faq

I've been given a key file (.key), a certificate (.crt), and a chain file (.pem) along with a server application I'm supposed to connect to. The following openssl command works...

openssl s_client -key provided.key -cert provided.crt -CAfile provided.pem -connect 127.0.0.1:port

I'm asked for a pass phrase for the key and then I connect. I'm trying to duplicate this in a C# application. I've used TcpClient with an SslStream but that requires a .pfx file. I've created the file using openssl but that didn't work (used the key and certificate file).

Is there a way to simulate the openssl s_client command using C#? And can I register a callback for the entry of a pass phrase?

asked Aug 23 at 09:02

Ricko's gravatar image

Ricko
1

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×10

Asked: Aug 23 at 09:02

Seen: 171 times

Last updated: Aug 23 at 09:02

powered by OSQA