Gallery Remote ignores the SubjectAlternativeName Extension. Therefore it doesn't work with my site.
Base site: example.com (this URI is in the commonName)
Gallery: gallery.example.com (this URI is in SubjectAlternativeName among others)
Gallery works in this case with wildcard certificates, but this isn't possible with my CA.
Furthermore it accepts Certificates if it can't read the commonName of the certificate?
I fixed both. Please review and/or include my patch.
my patch, that should fix the issue
Fixed the title.