Ssl
SSL 錯誤 curl/wget 未知協議/錯誤的版本號
我一直在嘗試在命令行/cron 作業中使用本地託管的 https url,但我得到了這些錯誤。curl 輸出類似。相同的命令在其他伺服器中使用時可以完美執行。
預設
[root@tejon ~]# wget -O /dev/null https://www.domain.com/cron/notification.php --2013-05-27 10:33:38-- https://www.domain.com/cron/notification.php Resolving www.domain.com... 173.45.38.60 Connecting to www.domain.com|173.45.38.60|:443... connected. OpenSSL: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol Unable to establish SSL connection.
TLSv1
[root@tejon ~]# wget --secure-protocol=TLSv1 -O /dev/null https://www.domain.com/cron/notification.php --2013-05-27 10:45:59-- https://www.domain.com/cron/notification.php Resolving www.domain.com... 173.45.38.60 Connecting to www.domain.com|173.45.38.60|:443... connected. OpenSSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number Unable to establish SSL connection.
SSLv2
[root@tejon ~]# wget --secure-protocol=SSLv2 -O /dev/null https://www.domain.com/cron/notification.php --2013-05-27 10:47:18-- https://www.domain.com/cron/notification.php Resolving www.domain.com... 173.45.38.60 Connecting to www.domain.com|173.45.38.60|:443... connected.
它會阻止輸入,但不會執行文件。
SSLv3
[root@tejon ~]# wget --secure-protocol=SSLv3 -O /dev/null https://www.domain.com/cron/notification.php --2013-05-27 10:43:23-- https://www.domain.com/cron/notification.php Resolving www.domain.com... 173.45.38.60 Connecting to www.domain.com|173.45.38.60|:443... connected. OpenSSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number Unable to establish SSL connection.
由數據中心支持解決。
域被添加到 /etc/hosts 不知道如何,一旦刪除它就起作用了。