views:

901

answers:

3

I ran accross a CSR file (Certificate Signing Request) and I need to extract some information from it.

There's a way to decode it using .NET Framework?

A: 

There's no way to decode a CSR, by design. If you could, you could alter the properties and defeat the whoe purpose of SSL.

jwmiller5
CAs typically disregard most of the information in the CSR when determining a name to bind to the key. The key is what matters; the other properties are just hints for the name.
erickson
cool, learned something new today
jwmiller5
+2  A: 

It's not .NET, but for interactive use, try the OpenSSL utilities. Specifically:

openssl req -text -in request.csr
erickson
A: 

Try Liping Dai's website. His LCLib has ASN1 Parser which wrote in C#. It can decode CSR. Work for me.

sompops