环境是vBox里的centOS8,是可以访问https的,docker里容器不行。 9 B: A4 O1 }2 H3 F7 b& z# K$ n* U g) B8 w
curl http://www.baidu.com 可以; b7 _! |! b4 s; f2 Y1 m, Z/ {. e
curl https://www.baidu.com 不可以 - B! P6 E$ ?3 _) h' i! U( u 0 C" A. R( y- j报错:curl: (60) SSL certificate problem: unable to get local issuer certificate4 E. V1 H. P# {; j5 n% g/ |6 Z
More details here: https://curl.haxx.se/docs/sslcerts.html 6 w+ ]* Q; [! n! ^$ I ) x" x j' O. ]5 }% C9 \3 I+ @9 Hcurl failed to verify the legitimacy of the server and therefore could not% K3 y2 o6 ]+ @! R% x! U% [
establish a secure connection to it. To learn more about this situation and4 b1 b' K1 ?- G$ `- K# f5 o1 ]
how to fix it, please visit the web page mentioned above./ o6 V' I* L0 m# i' q, Y+ O