Solved

X509Data, X509Certificate

Posted on 2007-03-27
1
782 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

636 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