Solved

X509Data, X509Certificate

Posted on 2007-03-27
1
774 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

710 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