?
Solved

X509Data, X509Certificate

Posted on 2007-03-27
1
Medium Priority
?
783 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 2000 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

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…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

718 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