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.
当前回答
检查openssl工具,这是一个来自LibreSSL项目和Cygwin库的openssl集合(2.5 MB)。NB !我们是包装商。
创建自签名证书的一行代码:
Openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout selfsigned。输出self - signed.crt
其他回答
你可以从这里获取https://slproweb.com/products/Win32OpenSSL.html
得到https://wiki.openssl.org/index.php/Binaries的支持和认可
如果您运行的是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的方法。
如果你已经安装了chocolatey,你可以通过一个命令来安装openssl。
choco install openssl
我最近需要记录如何安装它的一个版本,所以我在这里复制了我的步骤,因为其他答案使用的是与我推荐的Cygwin不同的来源。我喜欢Cygwin,因为它维护得很好,并为Windows提供了大量其他实用程序。Cygwin还允许您在修复漏洞时根据需要轻松更新版本。请经常更新您的OpenSSL版本!
打开Windows命令提示符,输入:OpenSSL version检查是否安装了OpenSSL
如果您得到命令无法识别的错误消息,那么按照以下总结步骤参考Cygwin安装OpenSSL:
基本上,下载并运行Cygwin Windows安装应用程序来安装和更新OpenSSL应用程序:
Select an install directory, such as C:\cygwin64. Choose a download mirror such as: http://mirror.cs.vt.edu Enter in openssl into the search and select it. You can also select/un-select other items of interest at this time. The click Next twice then click Finish. After installing, you need to edit the PATH variable. On Windows, you can access the System Control Center by pressing Windows Key + Pause. In the System window, click Advanced System Settings → Advanced (tab) → Environment Variables. For Windows 10, a quick access is to enter "Edit the system environment variables" in the Start Search of Windows and click the button "Environment Variables". Change the PATH variable (double-click on it or Select and Edit), and add the path where your Cywgwin is, e.g. C:\cygwin\bin. Verify you have it installed via a new Command Prompt window: openssl version. For example: C:\Program Files\mosquitto>openssl versionOpenSSL 1.1.1f 31 Mar 2020 If not, refer to the Cygwin documentation and also other tutorials such as: https://www.eclipse.org/4diac/documentation/html/installation/cygwin.html
我从https://slproweb.com/products/Win32OpenSSL.html安装了openssl 3.0.0。然后我进入windows start ->openssl->Win64 openssl命令提示符,它会打开一个像常规dos窗口一样的窗口,我所需要的就是进入openssl的安装文件夹。
推荐文章
- 我需要做什么才能使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
- adb.exe在windows 10中的位置?
- (1) libcurl不支持或禁用https协议
- 在Java客户端中接受服务器的自签名ssl证书
- 复制粘贴在Bash上Ubuntu在Windows上
- 如何自动提升批处理文件,以便在需要时请求UAC管理员权限?
- file_get_contents(): SSL operation failed with code 1, failed to enable crypto