StefanScherer / windows-docker-machine

Work with Windows containers and LCOW on Mac/Linux/Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Self signed server certificate not meeting RFC 5280

tgriek opened this issue · comments

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";

Fixed with #58