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.
当前回答
你可以从这里获取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
将Git中的openssl设置为默认的openssl,并将其包含到环境变量的路径中(快速方法)
OR
从这里安装系统特定的openssl 链接。 设置如下变量:Set . Set OPENSSL_CONF = LOCATION_OF_SSL_INSTALL \ bin \ openssl.cfg 更新路径:set path =…其他值 在这里……;LOCATION_OF_SSL_INSTALL \ bin
如果你已经安装了chocolatey,你可以通过一个命令来安装openssl。
choco install openssl
如果您运行的是Windows 10 1709 (build 16299)或更高版本,则可以使用下面的winget命令安装OpenSSL
winget install -e --id ShiningLight.OpenSSL
或者如果你的系统上安装了Git for Windows,你也可以在Git文件目录中找到OpenSSL。
C:\Program Files\Git\usr\bin\openssl.exe
更多详细信息请参见本指南3 Windows系统上安装OpenSSL的方法。
检查openssl工具,这是一个来自LibreSSL项目和Cygwin库的openssl集合(2.5 MB)。NB !我们是包装商。
创建自签名证书的一行代码:
Openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout selfsigned。输出self - signed.crt
推荐文章
- CMake无法找到OpenSSL库
- 从PKCS12文件中提取公钥/私钥,供以后在SSH-PK-Authentication中使用
- PHP获取网站URL协议- http vs https
- SSL握手警告:unrecognized_name错误,因为升级到Java 1.7.0
- SSL证书错误:无法获得本地颁发者证书
- "ERROR:root:code for hash md5 was not found"当使用任何hg mercurial命令时
- 我需要做什么才能使ie8接受自签署证书?
- 使用请求包时出现SSL InsecurePlatform错误
- BEGIN RSA PRIVATE KEY与BEGIN PRIVATE KEY的区别
- 你从哪里包含jQuery库?谷歌JSAPI吗?CDN吗?
- Ruby Bundle Symbol not found: _SSLv2_client_method (LoadError)
- 错误:无法验证nodejs中的第一个证书
- 没有为Android SSL连接找到信任锚
- 抓取:SSL: CERTIFICATE_VERIFY_FAILED错误http://en.wikipedia.org
- 使用.htaccess和mod_rewrite强制SSL/https