wget和curl失败,parsing某个域

我的服务器是具有Cpanel的CENTOS 6.8 i686 virtuozzo

我有问题使用wget / curl / traceroute解决某些域

当我使用wget我得到

wget https://www.alexbank.com/ABOUTUS/OurBank --2016-11-27 23:31:09-- https://www.alexbank.com/ABOUTUS/OurBank Resolving www.alexbank.com... 182.157.xxx.xxx Connecting to www.alexbank.com|182.157.xxx.xxx|:443... connected. ERROR: no certificate subject alternative name matches requested host name “www.alexbank.com”. To connect to www.alexbank.com insecurely, use '--no-check-certificate'. *************** wget --no-check-certificate https://www.alexbank.com/ABOUTUS/OurBank' --2016-11-27 23:49:31-- https://www.alexbank.com/ABOUTUS/OurBank Resolving www.alexbank.com... 182.157.xxx.xxx Connecting to www.alexbank.com|182.157.xxx.xxx|:443... connected. 

问题是182.157.xxx.xxx是我的服务器IP不www。 alexbank.com ip!

平能给我正确的决心

 ping www.alexbank.com PING www.alexbank.com (148.251.77.203) 56(84) bytes of data. 64 bytes from static.203.77.251.148.clients.your-server.de (148.251.77.203): icmp_seq=1 ttl=117 time=117 ms 

我尝试了其他服务器,如https://google.com ,他们都没事

同样的问题,当我使用curl

 curl https://www.alexbank.com curl: (51) SSL: certificate subject name 'MySeverLocalHost' does not match target host name 'www.alexbank.com' 

我检查了我的/etc/hosts

 127.0.0.1 localhost.localdomain localhost localhost4.localdomain4 localhost4 # Auto-generated hostname. Please do not remove this comment. 182.157.xxx.xxx MyServerHostName localhost6 localhost6.localdomain6 server1 localhost.localdomain ::1 localhost 

我检查了/etc/resolv.conf

 nameserver 8.8.8.8 nameserver 8.8.4.4 

关于wget,你可以使用:

wget --no-check-certificate https://www.alexbank.com/ABOUTUS/OurBank

这不会根据可用的证书颁发机构检查服务器证书