Add --with-san flag to allow generating cert with SAN#3
Merged
dmcgowan merged 1 commit intodmcgowan:masterfrom Apr 9, 2020
Merged
Add --with-san flag to allow generating cert with SAN#3dmcgowan merged 1 commit intodmcgowan:masterfrom
dmcgowan merged 1 commit intodmcgowan:masterfrom
Conversation
This adds a `--with-san` flag that, when set, will generate a
single certificate with the provided hosts added as Subject
Alternative Name (SAN) instead of generating a separate
certificate for each host.
For example:
quicktls -with-san domain-one.example.org domain-two.example.org localhost 127.0.0.1
ls -l
total 24
-rw-r--r-- 1 sebastiaan staff 1094 Apr 9 17:14 ca.pem
-rw-r--r-- 1 sebastiaan staff 1208 Apr 9 17:14 domain-one.example.org.cert
-rw------- 1 sebastiaan staff 1675 Apr 9 17:14 domain-one.example.org.key
openssl x509 -text -noout -in ./domain-one.example.org.cert
...
X509v3 extensions:
X509v3 Subject Alternative Name:
DNS:domain-one.example.org, DNS:domain-two.example.org, DNS:localhost, IP Address:127.0.0.1
...
Signed-off-by: Sebastiaan van Stijn <[email protected]>
Contributor
Author
|
@dmcgowan PTAL |
This was referenced Apr 9, 2020
Contributor
Author
|
Thanks! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a
--with-sanflag that, when set, will generate a single certificate with the provided hosts added as Subject Alternative Name (SAN) instead of generating a separate certificate for each host.For example: