ssl peer shut downcertificate or ssh remote key was not ok怎么解决

Topic: Upgrade to WP 3.5.1 Network – SSL peer certificate or SSH remote key was not OK &
WordPress.org Forums
& Upgrade to WP 3.5.1 Network – SSL peer certificate or SSH remote key was not OK
(@acjohnson1985)
I just upgraded our site to WordPress 3.5.1 and we have a Network installation using subdomains. After running the update successfully I told it to run the Network Update and I kept getting this error message:
Warning! Problem updating Error message: SSL peer certificate or SSH remote key was not OK
Immediately I realized that I was getting this message since we are using a non-wildcard certificate. I did some reasearch and discovered that this is a cURL error message and that the CURLOPT_SSL_VERIFYHOST php option enables or disables SSL certificate verification.
I then ran grep -ri “CURLOPT_SSL_VERIFYHOST” * from the root of our WordPress installation and found a line in /wp-includes/class-http.php and I changed that line from:
curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( $ssl_verify === true ) ? 2 : false );
curl_setopt( $handle, CURLOPT_SSL_VERIFYHOST, ( $ssl_verify === false ) ? 2 : false );
…and now it allows me to run the Network Update.
Just thought I’d post this here incase someone else is too lazy (or cheap) to pay for a wildcard certificate and finds themselves in the same situation ?
Viewing 5 replies - 1 through 5 (of 5 total)
(@ipstenu)
Please don’t edit core. Lazy and cheap will cause heartache and pain. DO NOT EDIT CORE WORDPRESS FILES
(@acjohnson1985)
Would you please post a better solution then?
(@ipstenu)
You already know the real answer: Buy a wildcard cert. Hello.
You’re using a NON wildcard cert on a wildcard situation, that’s not WP really, that’s you. The other ‘fix’ is to turn off SSL, upgrade, turn it back on.
(@acjohnson1985)
Yeah, except that it worked just fine until I upgraded to WP 3.5.1 and we’ve been running the same configuration since WP 2.x without any issues… Something got changed in 3.5.1 and now it does not work the way that it did before so making a tiny code change to allow an invalid SSL certificate fixes the problem.
Once finished running the Network Update, simply change CURLOPT_SSL_VERIFYHOST back to true and your done. Seems like a good solution to me if you are unwilling to pay for a wildcard cert or if you choose to use a self-signed cert…
Thanks AC Johnson, this simple and little band-aid did the trick until we get a wildcard cert. Changed it to False, Updated, then changed it back to True. Woohoo.
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Upgrade to WP 3.5.1 Network – SSL peer certificate or SSH remote key was not OK’ is closed to new replies.
Topic Tags
Code is Poetry.114网址导航Unity安装流程(ssl&peer&certificate&or&ssh&remote&key&was&not&ok)
学习Android游戏开发,Unity3D是一款不错的Android游戏开发引擎,但此次安装后出现一个错误:提示“ssl peer
certificate or ssh remote key was not ok”或者“problem with the ssl ca
cert (path? access
rights?)”,这两个错误其实它的意思就是让你手动激活Unity3D,解决它的步骤也比较简单。
1、首先,断网,双击unity3D快捷方式打开出现下图后,点击红框内按钮。
<img STYLE="MAx-WiDTH: 100%; BorDer-Top: 0 HeiGHT: BorDer-riGHT: 0 VerTiCAL-ALiGn: BorDer-BoTToM: 0 TexT-ALiGn: MArGin: 0 BorDer-LeFT: 0 DispLAY: block" ALT="unity_setup_error_1" src="/blog7style/images/common/sg_trans.gif" real_src ="/wp-content/uploads/2016/01/unity_setup_error_1.png" WIDTH="418" HEIGHT="164" DATA-BD-IMGSHARE-BINDED="1" DATA-TAG="bdshare" NAME="image_operate_28620"
TITLE="Unity安装流程(ssl&peer&certificate&or&ssh&remote&key&was&not&ok)" />
2、然后出现下图界面后,仍然点击红框内按钮,随便找一个文件夹保存。
<img STYLE="MAx-WiDTH: 100%; BorDer-Top: 0 HeiGHT: BorDer-riGHT: 0 VerTiCAL-ALiGn: BorDer-BoTToM: 0 TexT-ALiGn: MArGin: 0 BorDer-LeFT: 0 DispLAY: block" ALT="unity_setup_error_2" src="/blog7style/images/common/sg_trans.gif" real_src ="/wp-content/uploads/2016/01/unity_setup_error_2.png" WIDTH="397" HEIGHT="229" DATA-BD-IMGSHARE-BINDED="1" DATA-TAG="bdshare" NAME="image_operate_89916"
TITLE="Unity安装流程(ssl&peer&certificate&or&ssh&remote&key&was&not&ok)" />
3、访问步骤2中的链接:,之后会出现下图,选择刚才保存的文件点击Next下一步。
4、选择你的unity3D的版本,然后有可能你会根据英语提示随便选一个选项,Next下一步。
5、用你的unity3D官网的用户名密码登录,之后会提示你下载证书文件,保存到本地。
6、最后要重新断网,再次打开unity3D或者在第3步之前弹出的对话框中点Load
License,选择第5步保存本地的证书文件即可,到此为止你就可以打开期待已久的unity3D了,赶快创建个项目进行Android游戏开发吧!
关联VS编辑器:
在Unity中双击脚本没有反应,那是因为没有安装VS编辑器,需要去安装编辑器。
必须安装:VS STUDIO否则连接不到编辑器。 使用整体安装的会与VS 2015 For Unity冲突。
已投稿到:
以上网友发言只代表其个人观点,不代表新浪网的观点或立场。}

我要回帖

更多关于 ssl peer certificate 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信