Windows 7 - 如何在未安装 IIS 时生成 CSR [英] Windows 7 - How to generate CSR when IIS is not installed

查看:22
本文介绍了Windows 7 - 如何在未安装 IIS 时生成 CSR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 .NET 应用程序将与第三方服务器应用程序通信,该应用程序通过 SSL 实现为 Web 服务.此应用程序将在不同风格的 Windows 7 平台上运行.服务器应用程序需要我生成 CSR 文件.我可以找到生成 CSR 的唯一方法是通过 IIS,但这可能不一定安装在托管我的应用程序的所有计算机上.关于如何在不使用 IIS 的情况下在 Win 7 平台上生成 CSR 的任何想法?

My .NET application will be communicating with a third party server application that is implemnted as web-service over SSL. This application will run from different flavours of Windows 7 platform. The server application requires me to generate CSR file. The only way I can find generating a CSR is via IIS but this may not necessarily be installed on all computer where my application will be hosted. Any ideas on how can I generate a CSR on Win 7 platform without using IIS?

推荐答案

获取更新版本的openssl...
https://www.openssl.org/community/binaries.html 链接到
https://wiki.openssl.org/index.php/Binaries 链接到
http://slproweb.com/products/Win32OpenSSL.html 其中包含 win64 和 win32 的链接openssl.

For a more recent version of openssl...
https://www.openssl.org/community/binaries.html links to
https://wiki.openssl.org/index.php/Binaries which links to
http://slproweb.com/products/Win32OpenSSL.html which has links for win64 and win32 openssl.

否则,您应该可以在 windows 上安装 openssl v0.98h:
http://gnuwin32.sourceforge.net/packages/openssl.htm

Otherwise, you should be able to install openssl v0.98h on windows with this:
http://gnuwin32.sourceforge.net/packages/openssl.htm

在命令提示符下运行openssl(开始->运行->cmd.exe"):
openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
或者你可以使用这个在线工具生成openssl命令:
https://www.digicert.com/easy-csr/openssl.htm

Run the openssl at the command prompt (Start->Run->"cmd.exe"):
openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
or you can use this online tool to generate the openssl command:
https://www.digicert.com/easy-csr/openssl.htm

当您在计算机上运行 openssl req 命令时,它会生成一个 CSR(嵌入公钥)和私钥.

When you run the openssl req command on your computer, it will generate a CSR (with public key embedded) and private key.

这篇关于Windows 7 - 如何在未安装 IIS 时生成 CSR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆