同时在Linux(非Mac)系统中使用curl命令来访问https://ssl-failure.thousandeyes.net导致错误。但是,在 Chrome 等网络浏览器中打开此网站似乎不会生成错误。这怎么样?
答案1
来自男人:
-k/--insecure (SSL) This option explicitly allows curl to perform "insecure" SSL connections and transfers. All SSL connections are attempted to be made secure by using the CA certificate bundle installed by default. This makes all connections considered "insecure" fail unless -k/--insecure is used.
您正在尝试访问安全(SSL)站点使用-k
选项,以允许curl执行“不安全”的SSL连接和传输。
curl -k 'https://ssl-failure.thousandeyes.net/'
<html>
<head>
<title>Welcome to ssl-failure.thousandeyes.net</title>
</head>
<body>
<p>Welcome to ssl-failure.thousandeyes.net. Congratulations, you're reading the secure page</p>
</body>
</html>