forked from btcsuite/btcutil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some applications fail to parse the certificate if the CN is not set, even if they (correctly) check SANs before the CN when validating a hostname. Even though the CN should be ignored if a matching SAN hostname was found, we can prevent the parse from failing by also including the hostname as the CN. Additionally, switch from maps to slices to prevent DNS names and IP addresses from being reordered when added to the certificate template.
- Loading branch information
Showing
2 changed files
with
71 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters