Solved

X509Data, X509Certificate

Posted on 2007-03-27
1
746 Views
Last Modified: 2013-12-17
I need to be able to create a key in C# that looks like this - how to do this?

            <ds:KeyInfo>
                  <ds:X509Data>
                        <ds:X509Certificate>
MIICaTCCAdICAQAwDQYJKoZIhvcNAQEEBQAwfTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCENvbG9yYWRvMQ8wDQYDVQQH
EwZEZW52ZXIxEjAQBgNVBAoTCVNvdXJjZSBJRDEMMAoGA1UECxMDU1NPMSgwJgYDVQQDEx9Tb3VyY2VJRC5ORVQgc2Ft
cGxlIGNlcnRpZmljYXRlMB4XDTAzMDUyOTA4MDczN1oXDTA3MDUyODA4MDczN1owfTELMAkGA1UEBhMCVVMxETAPBgNV
..
                        </ds:X509Certificate>
                  </ds:X509Data>
            </ds:KeyInfo>
0
Comment
Question by:bluiee
1 Comment
 
LVL 1

Accepted Solution

by:
bluxau earned 500 total points
ID: 18888023
With C#

Look at

using System.Security.Cryptography.X509Certificates;

..
X509Certificate cert = new X509Certificate(Certificate, "pass");
..
byte[] certData = cert.Export(X509ContentType.Cert);
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now