I have a question about how and what is the version of OpenSSl that I must install in Windows to later create certificates. Install a one version (openssl-1.0.2d-fips-2.0.10) found in SourceForge but it does not generate the files correctly. There is also the official website https://www.openssl.org, but I do not know how to install it and how, so that when it comes to generating the keys and .pem file, it works. Generate some environment variables that point to the folder where I unzipped the downloaded, I do not know if it is the correct way.


当前回答

你安装Git了吗? 您可以在Git Bash中访问openssl命令,而无需添加任何环境变量。

但是,如果你想从Windows cmd中访问openssl命令,请跟随我:

找到Git bin目录的路径。通常是在

C:\Program Files\Git\usr\bin\

然后添加路径你的环境变量(User变量-> path):

现在打开一个新的命令提示符(不要使用已经打开的cmd,因为已经打开的cmd不知道新的环境变量)。

现在写:

openssl

其他回答

Necroposting,但可能对其他人有用:

There's always the official page ([OpenSSL.Wiki]: Binaries) which contains useful URLs (pointing to unofficial resources / builds, make sure to read the Important Disclaimer) There are other repositories which contain unofficial builds Here I want to mention: [GitHub]: CristiFati/Prebuilt-Binaries - Prebuilt-Binaries/OpenSSL v1.0.2u (FIPS capable) is built with OpenSSL-FIPS 2.0.16 Artefacts are .zips that should be unpacked in "C:\Program Files" (please take a look at the Readme.md file, and also at the one at the repository root) Other 3rd-party software may bundle OpenSSL, so it gets "installed" as a side effect. Such software (mentioned by other answers): Cygwin, Git And of course you can build it yourself from sources, but that requires some deeper knowledge

注意:当你有一个功能性的OpenSSL实例时(使用上面的任何方法),下面是你如何从VStudio中使用它(如果你需要它到你自己的项目中):

将Git中的openssl设置为默认的openssl,并将其包含到环境变量的路径中(快速方法)

OR

从这里安装系统特定的openssl 链接。 设置如下变量:Set . Set OPENSSL_CONF = LOCATION_OF_SSL_INSTALL \ bin \ openssl.cfg 更新路径:set path =…其他值 在这里……;LOCATION_OF_SSL_INSTALL \ bin

你可以从这里获取https://slproweb.com/products/Win32OpenSSL.html

得到https://wiki.openssl.org/index.php/Binaries的支持和认可

你安装Git了吗? 您可以在Git Bash中访问openssl命令,而无需添加任何环境变量。

但是,如果你想从Windows cmd中访问openssl命令,请跟随我:

找到Git bin目录的路径。通常是在

C:\Program Files\Git\usr\bin\

然后添加路径你的环境变量(User变量-> path):

现在打开一个新的命令提示符(不要使用已经打开的cmd,因为已经打开的cmd不知道新的环境变量)。

现在写:

openssl

我还想为Windows 10创建OPEN SSL。有一种简单的方法可以避免从第三方网站安装未知软件和冒病毒的风险,就是使用Git for Windows安装中的openssl.exe。在我的例子中,我在Git for Windows安装的下面位置找到了开放SSL。

C:\Program Files\Git\usr\bin\ openssl.exe

如果您还想了解如何使用OPENSSL生成和使用证书,这里是我博客上的一篇文章。分步说明首先解释了如何使用Microsoft Windows默认工具和OPEN SSL,并解释了它们之间的区别。

https://kaushikghosh12.blogspot.com/2016/08/self-signed-certificates-with-microsoft.html