Is there any way we could create a request for certificate in .NET?

If this is possible then i will create public key/private key, and send the
public key and the other information as a CSR to verisign. Is it possible in
c#?

Dinesh



----- Original Message -----
From: "Mitch Denny" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 28, 2002 3:58 AM
Subject: Re: [DOTNET] Using Verign Keypair in .NET Cryptography


> Dinesh,
>
> Here is the code to read in the certificate from the certificate
> file, thats pretty straight forward. You can get the public key
> off the certificate, but since RSA is an asymetric algorithm you
> will need the private key as well.
>
>         // Declare locals.
>         byte[] decodedCertificateData = null;
>         StreamReader reader = null;
>         string encodedCertificateData = null;
>         X509Certificate certificate = null;
>
>         // Open the file and read its contents into a string.
>         reader = new StreamReader(@"..\..\Certificate.b64");
>         encodedCertificateData = reader.ReadToEnd();
>         reader.Close();
>
>         // Convert the Base64 encoded string to a decoded array of bytes
>         // and pass it to the X509Certificate constructor.
>         decodedCertificateData =
> Convert.FromBase64String(encodedCertificateData);
>         certificate = new X509Certificate(decodedCertificateData);
>
> You need to reference the System.Security.Cryptography.X509Certificates
> namespace in your application code. Hope this helps!
>
> ----------------------------------------
> - Mitch Denny
> - [EMAIL PROTECTED]
> - +61 (414) 610-141
> -
>
> -----Original Message-----
> From: The DOTNET list will be retired 7/1/02
> [mailto:[EMAIL PROTECTED]] On Behalf Of Dinesh Upare
> Sent: Thursday, 27 June 2002 19:30
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] Using Verign Keypair in .NET Cryptography
>
>
> I received following SSL ID from verisign .
> Now can anyone tell me how to convert this SSL ID to RSACryptoService
> Parameters, so that I could use it to encrypt decrypt using
> RSACryptoServiceProvider class?
>
>
>
> MIIDIzCCAs2gAwIBAgIQU5IKhMDwXquPrlr6xw1MLjANBgkqhkiG9w0BAQUFADCB
> qTEWMBQGA1UEChMNVmVyaVNpZ24sIEluYzFHMEUGA1UECxM+d3d3LnZlcmlzaWdu
> LmNvbS9yZXBvc2l0b3J5L1Rlc3RDUFMgSW5jb3JwLiBCeSBSZWYuIExpYWIuIExU
> RC4xRjBEBgNVBAsTPUZvciBWZXJpU2lnbiBhdXRob3JpemVkIHRlc3Rpbmcgb25s
> eS4gTm8gYXNzdXJhbmNlcyAoQylWUzE5OTcwHhcNMDIwNjI3MDAwMDAwWhcNMDIw
> NzExMjM1OTU5WjBjMQswCQYDVQQGEwJJTjEUMBIGA1UECBMLTWFoYXJhc2h0cmEx
> DzANBgNVBAcUBk11bWJhaTENMAsGA1UEChQEUlNQTDENMAsGA1UECxQEUlNQTDEP
> MA0GA1UEAxQGZGluZXNoMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQClWPFp
> tpXEEhR3quwVQbZR1VedXIcZtFJweMyy3Jtut6hV48f7akrfQmHCKKzk4CtNB7Fs
> bUA1J4Qq0m2hMOEBejlEyvARlBv2qwIn+dYbosKXk/hYkfavoswaXxfgroka0kCQ
> Cux0AoGkQyZoLerqCuMOLFwhAy5z67VvbLmBwQIDAQABo4HRMIHOMAkGA1UdEwQC
> MAAwCwYDVR0PBAQDAgWgMEIGA1UdHwQ7MDkwN6A1oDOGMWh0dHA6Ly9jcmwudmVy
> aXNpZ24uY29tL1NlY3VyZVNlcnZlclRlc3RpbmdDQS5jcmwwUQYDVR0gBEowSDBG
> BgpghkgBhvhFAQcVMDgwNgYIKwYBBQUHAgEWKmh0dHA6Ly93d3cudmVyaXNpZ24u
> Y29tL3JlcG9zaXRvcnkvVGVzdENQUzAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYB
> BQUHAwIwDQYJKoZIhvcNAQEFBQADQQAvZaz23MCot5k9shJPsRPzPXFIoms72a67
> JUIX2UX4l9N3jvuCeb8eFo7nXjwyiOhnQ88cvTPtj6aMecB62Mkh
>
>
> Thanks
>
> Dinesh
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET,
> or subscribe to other DevelopMentor lists at http://discuss.develop.com.
>
> You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at http://discuss.develop.com.
>

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to