StefanScherer / windows-docker-machine

Work with Windows containers and LCOW on Mac/Linux/Windows
MIT License
1.06k stars 147 forks source link

Self signed server certificate not meeting RFC 5280 #57

Closed tgriek closed 4 years ago

tgriek commented 4 years ago

Issue The current self-signed server certificate does not contain a subject line. Apparently it is not meeting RFC 5280 §4.2.1.6 standards according to this post.

This results in some libraries not accepting the certificate as valid.

java.security.cert.CertificateParsingException: X.509 Certificate is incomplete: SubjectAlternativeName extension MUST be marked critical when subject field is empty

Solution Add a subject line

Subject = "CN=serverCert";
StefanScherer commented 4 years ago

Fixed with #58