C#实用程序来创建CA.

时间:2022-10-20 18:55:10

I'd like to create a utility in C# to allow someone to easily create a Certificate Authority (CA) in Windows. Any ideas/suggestions?

我想在C#中创建一个实用程序,以允许某人在Windows中轻松创建证书颁发机构(CA)。有什么想法/建议吗?

I know I can use OpenSSL to do this. In the end, I'll want this utility to do more than just generate a CA. I'd also like to avoid requiring the installation of OpenSSL in order to run my utility.

我知道我可以使用OpenSSL来做到这一点。最后,我希望这个实用程序不仅仅生成一个CA.我还想避免安装OpenSSL以运行我的实用程序。

2 个解决方案

#1


3  

Since OpenSSL is Apache-licensed (i.e. BSD-style), you can simply distribute it as a DLL along with your application. (Maybe build it yourself to have only the features you need and all in a single DLL.) Then use p/invoke calls to talk with this DLL.

由于OpenSSL是Apache许可的(即BSD风格),因此您可以将其作为DLL与您的应用程序一起分发。 (也许自己构建它只需要你需要的功能,并且只需要一个DLL。)然后使用p / invoke调用与这个DLL对话。

(Maybe you can even link the native code straight into your .NET executable? Not sure about that.)

(也许您甚至可以将本机代码直接链接到.NET可执行文件中?不确定。)

#2


1  

Take a look at BouncyCastle http://www.bouncycastle.org/csharp/

看看BouncyCastle http://www.bouncycastle.org/csharp/

#1


3  

Since OpenSSL is Apache-licensed (i.e. BSD-style), you can simply distribute it as a DLL along with your application. (Maybe build it yourself to have only the features you need and all in a single DLL.) Then use p/invoke calls to talk with this DLL.

由于OpenSSL是Apache许可的(即BSD风格),因此您可以将其作为DLL与您的应用程序一起分发。 (也许自己构建它只需要你需要的功能,并且只需要一个DLL。)然后使用p / invoke调用与这个DLL对话。

(Maybe you can even link the native code straight into your .NET executable? Not sure about that.)

(也许您甚至可以将本机代码直接链接到.NET可执行文件中?不确定。)

#2


1  

Take a look at BouncyCastle http://www.bouncycastle.org/csharp/

看看BouncyCastle http://www.bouncycastle.org/csharp/