Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Certificate generation framework

Does anyone know a C# framework that can generate public/private keys, X.509 certificates and sign those certificates?

like image 550
Razvi Avatar asked Dec 26 '22 22:12

Razvi


1 Answers

BouncyCastleCrypto, as crazy of a name it is, I am pretty sure has all of these capabilities. Just about all of the RFC standards are implemented. When I used it a few years ago it was poorly documented, but the unit testing was very thorough, so much so that you could search around for certain key words like "509" and find unit tests that are exercising the part of the framework that you need.

I really found that I had to read through in great detail some of the RFC standards in order to understand how to use the framework. They really didn't put any effort into making things as simple as "cert.Sign(key)". Instead it is very granular, and you have to create half a dozen objects and know exactly how to put them together in order to get something done. This however, gives you complete flexibility and power, should you know how to wield that power.

I personally used it to load X.509 certificates, perform various key generation tasks, digital signing/verification, self signing, etc. but I have long forgotten all of it, so not much help other than a confident, it can be done.

like image 103
AaronLS Avatar answered Jan 08 '23 05:01

AaronLS