Convert crt and key to pfx using pure c #

Without using any third party libraries, how can you convert .crt and .key to .pfx using only C # code?

I already know how to do this on the command line with openssl. I am looking for a solution that only uses what is available in the .NET Framework 4.0-4.5.2.

To clarify that there are no third party libraries, the following are examples of third party libraries:

  • BouncyCastle - library
  • openssl - using command line or embedding
  • makecert - command line usage
+3
c # .net ssl-certificate x509certificate


source to share


No one has answered this question yet

Check out similar questions:

6155
What is the difference between string and string in C #?
3575
How to list a transfer?
2964
How to cast int to enum?
2397
What are the correct version numbers for C #?
2058
How do I get a consistent byte representation of strings in C # without manually specifying the encoding?
1786
How to create Excel file (.XLS and .XLSX) in C # without installing Microsoft Office?
1742
How to calculate a person's age in C #?
1476
Hidden features of C #?
1109
Why is Dictionary preferred over Hashtable?
1012
Can you view all the enumeration values?



All Articles
Loading...
X
Show
Funny
Dev
Pics