EDA365电子论坛网
标题:
请问docker里的容器怎么样才能够访问https啊?
[打印本页]
作者:
jiulquq
时间:
2020-8-20 15:06
标题:
请问docker里的容器怎么样才能够访问https啊?
环境是vBox里的centOS8,是可以访问https的,docker里容器不行。
" ?/ D/ p4 ~, Y* B0 \9 c+ S
3 l* e& a. t8 {
curl http://www.baidu.com 可以
& |' \% ^3 e* t6 w: I% a
curl https://www.baidu.com 不可以
1 d/ s1 y# O( k% t8 A1 H
2 U# |5 ^( v! O5 a+ P4 i
报错:curl: (60) SSL certificate problem: unable to get local issuer certificate
9 z; I) B6 m! `5 y$ q8 [6 K& }
More details here: https://curl.haxx.se/docs/sslcerts.html
- @3 F) y; p! I9 K
- H1 |; l0 `3 ]6 {* h2 w. |2 ?7 M
curl failed to verify the legitimacy of the server and therefore could not
% j0 d& L1 ?3 g9 z! G; f2 W, C) q
establish a secure connection to it. To learn more about this situation and
|% i' @5 o/ ^) `) n7 ]9 J
how to fix it, please visit the web page mentioned above.
9 K2 Y/ H7 H+ _/ M1 T
* J0 A* G) {3 U4 Z/ E" t$ o) Z
8.png
(43.55 KB, 下载次数: 3)
下载附件
保存到相册
2020-8-20 15:06 上传
( V1 Z4 ^% {$ x* e& K: X% \
作者:
youOK
时间:
2020-8-20 15:41
感觉会Linux的人都好帅的啊
作者:
ulppknot
时间:
2020-8-20 16:04
curl -k xxxxxxx 忽略证书
欢迎光临 EDA365电子论坛网 (https://bbs.eda365.com/)
Powered by Discuz! X3.2