如何在 Windows 7 上更新 OpenSSL?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12221854/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 09:50:42  来源:igfitidea点击:

How to update OpenSSL on windows 7?

windowsopensslcygwin

提问by LearningRoR

I'm using Windows 7 x64 and In my cgywin prompt I can run

我使用的是 Windows 7 x64 并且在我的 cgywin 提示中我可以运行

$ openssl version
OpenSSL 0.9.8e 23 Feb 2007

and see the current version. I want to update this to the latest version but can't find an official source on how to do this. What's the easiest way to do this? I hope theirs a command line I can use in the same window.

并查看当前版本。我想将此更新到最新版本,但找不到有关如何执行此操作的官方来源。什么是最简单的方法来做到这一点?我希望他们的命令行我可以在同一个窗口中使用。

Thanks.

谢谢。

回答by Brett

To upgrade Cygwin's openssl you just need to run the installer and select the newer version. Cygwin's site states the following:

要升级 Cygwin 的 openssl,您只需要运行安装程序并选择较新的版本。Cygwin 的网站声明如下:

The setup.exe utility tracks the versions of all installed components and provides the mechanism for installing or updating everything available from this site for Cygwin.

setup.exe 实用程序会跟踪所有已安装组件的版本,并提供用于安装或更新此站点上 Cygwin 可用的所有内容的机制。

The steps to upgrade are the following:

升级步骤如下:

  1. Go to Cygwin's Siteand download setup.exe.
  2. Run setup.exeand click next until you hit the "Select Packages" page.
  3. Type the package you want to upgrade (openssl) in the search box.
  4. Select the version you want to install.
  5. Click Next and wait for it to install/download it.
  1. 转到Cygwin 的站点并下载setup.exe
  2. 运行 setup.exe并单击下一步,直到您点击“选择包”页面。
  3. 在搜索框中键入要升级的包 (openssl)。
  4. 选择要安装的版本。
  5. 单击下一步并等待它安装/下载它。

Cygwin OpenSSL Installation

Cygwin OpenSSL 安装

After the installation/upgrade is complete you should be able to see the new version in Cygwin with the following command:

安装/升级完成后,您应该可以使用以下命令在 Cygwin 中看到新版本:

$ openssl version
OpenSSL 1.0.1c 10 May 2012

$ which openssl
/usr/bin/openssl

You also may be able to build Openssl from source but I have never tried. I figure Cygwin handles the installation/upgrade for a reason.

您也可以从源代码构建 Openssl,但我从未尝试过。我认为 Cygwin 处理安装/升级是有原因的。

Also, OpenSSL can be installed without Cygwin with one of the binaries at the following location: http://slproweb.com/products/Win32OpenSSL.html

此外,OpenSSL 可以在没有 Cygwin 的情况下使用以下位置的二进制文件之一安装:http: //slproweb.com/products/Win32OpenSSL.html