Windows下Generate CSR - OpenSSL

一、在apache上生成CSR文件以及Key

申请命令如下:

[php]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. openssl req -new -newkey rsa:2048 -nodes -keyout forevereves.key  -out forevereves.csr  

发现总是出错,出错信息如下:

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. Unable to load config info from /usr/local/ssl/openssl.cnf  

解决办法:

[html]  view plain  copy
  在CODE上查看代码片 派生到我的代码片
  1. openssl req -new -newkey rsa:2048 -nodes -keyout forevereves.key -config "C:\xampp\php\extras\openssl\openssl.cnf" -out forevereves.csr  

大家比较一下2个命令行便知,最后一个命令行多了一个-config "C:\xampp\php\extras\openssl\openssl.cnf"

也就是说,在XAMPP中,默认的openssl.cnf的路径在<XAMPP的安装路径\php\extras\openssl\openssl.cnf>

二、把CSR文件提交至Godaddy上做验证

扫描二维码关注公众号,回复: 1485527 查看本文章

三、把Godaddy审核通过的证书下载后安装

http://www.digicert.com/ssl-certificate-installation-apache.htm

注:如果由于某些原因,需要重新安装Apache服务器或Key文件被删除,可以进行Re-Keying

http://support.godaddy.com/help/4976

猜你喜欢

转载自blog.csdn.net/lzm198707/article/details/70266613