wget https://www.baidu.com 报错ERROR: certificate common name `baidu.com' doesn't match requested host
2016-06-06 16:43
1181 查看
[root@app-test ~]# wget https://www.baidu.com
--16:41:42-- https://www.baidu.com/
Resolving www.baidu.com... 119.75.217.109, 119.75.218.70
Connecting to www.baidu.com|119.75.217.109|:443... connected.
ERROR: certificate common name `baidu.com' doesn't match requested host name `www.baidu.com'.
To connect to www.baidu.com insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
解决方法
加上 --no-check-certificate 参数
root@app-test ~]# wget --no-check-certificate https://www.baidu.com
--16:44:16-- https://www.baidu.com/
Resolving www.baidu.com... 119.75.218.70, 119.75.217.109
Connecting to www.baidu.com|119.75.218.70|:443... connected.
WARNING: certificate common name `baidu.com' doesn't match requested host name `www.baidu.com'.
HTTP request sent, awaiting response... 200 OK
Length: 227 [text/html]
Saving to: `index.html.2'
100%[===================================================================================================================>] 227 --.-K/s in 0s
16:44:16 (1.55 MB/s) - `index.html.2' saved [227/227]
--16:41:42-- https://www.baidu.com/
Resolving www.baidu.com... 119.75.217.109, 119.75.218.70
Connecting to www.baidu.com|119.75.217.109|:443... connected.
ERROR: certificate common name `baidu.com' doesn't match requested host name `www.baidu.com'.
To connect to www.baidu.com insecurely, use `--no-check-certificate'.
Unable to establish SSL connection.
解决方法
加上 --no-check-certificate 参数
root@app-test ~]# wget --no-check-certificate https://www.baidu.com
--16:44:16-- https://www.baidu.com/
Resolving www.baidu.com... 119.75.218.70, 119.75.217.109
Connecting to www.baidu.com|119.75.218.70|:443... connected.
WARNING: certificate common name `baidu.com' doesn't match requested host name `www.baidu.com'.
HTTP request sent, awaiting response... 200 OK
Length: 227 [text/html]
Saving to: `index.html.2'
100%[===================================================================================================================>] 227 --.-K/s in 0s
16:44:16 (1.55 MB/s) - `index.html.2' saved [227/227]
相关文章推荐
- HTTP 状态代码
- HTTP 错误 500.21 - Internal Server Error PageHandlerFactory-Integrated
- HTTP 错误 500.21 - Internal Server Error PageHandlerFactory-Integrated
- TOMCAT HTTPS访问配置应用
- Http协议与TCP协议简单理解(转)
- Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class com.squareup.okhttp.C
- HTTP 头部信息和错误码汇总详细解释
- AFNetworking3.0网络请求
- 使用Volley加载网络图片
- 脉络清晰的BP神经网络
- BP神经网络的实现
- iOS-http请求出错App Transport Security Settings
- nodejs http.request 发送请求demo
- HttpClient 发送 HTTP、HTTPS 请求的简单封装
- 网络连接时套接字对的变化状态
- C# HttpClientHelper请求
- Fiddler学习_模拟网络限速+设置接口404+地址替换+修改返回数据
- HttpUtils addHander参数进行压缩数据,
- Android DefaultHttpClient 上传文件
- jboss5可以使用http://localhost/和http://127.0.0.1/ 不可以ip访问