curl-library
Re: Issue with CURLOPT_SSL_VERIFYPEER?
Date: Fri, 3 Sep 2010 14:29:08 +0200
On Friday 03 September 2010 14:00:26 Heinrich Lang wrote:
> The https://www.google.de Website provides a certificate with the common Name 'www.google.com'
Really?
# curl -v https://www.google.de/
* About to connect() to www.google.de port 443 (#0)
* Trying 209.85.135.105... connected
* Connected to www.google.de (209.85.135.105) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: none
CApath: /etc/ssl/certs
* SSLv3, TLS handshake, Client hello (1):
* SSLv3, TLS handshake, Server hello (2):
* SSLv3, TLS handshake, CERT (11):
* SSLv3, TLS handshake, Server finished (14):
* SSLv3, TLS handshake, Client key exchange (16):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSLv3, TLS change cipher, Client hello (1):
* SSLv3, TLS handshake, Finished (20):
* SSL connection using RC4-SHA
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=www.google.de
* start date: 2010-08-05 04:59:54 GMT
* expire date: 2011-08-05 05:09:54 GMT
* common name: www.google.de (matched)
* issuer: C=US; O=Google Inc; CN=Google Internet Authority
* SSL certificate verify ok.
I see there a www.google.de so it's all perfect.
But google has many IPs and servers:
# host www.google.de
www.google.de is an alias for www.google.com.
www.google.com is an alias for www.l.google.com.
www.l.google.com has address 209.85.135.104
www.l.google.com has address 209.85.135.105
www.l.google.com has address 209.85.135.106
www.l.google.com has address 209.85.135.147
www.l.google.com has address 209.85.135.99
www.l.google.com has address 209.85.135.103
So maybe not all have the same certificate or configured as the same.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-03