Accept match on "Subject Alternative Name" for SSL certificates.

For example, Google uses a certificate with Common Name "google.com", but the same certificate is trusted when used on google.co.uk, as that hostname is an accepted Subject Alternative Name.
Merge pull request #1 from orrc/patch-1

Accept match on "Subject Alternative Name" for SSL certificates.