forked from mozilla/ssl-config-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
- testing one by one:
ssl.openssl.ssl-conf-cmd = ("MinProtocol" => {{#if (includes "TLSv1" output.protocols)}}"TLSv1"{{else if (includes "TLSv1.1" output.protocols)}}"TLSv1.1"{{else if (includes "TLSv1.2" output.protocols)}}"TLSv1.2"{{else}}"TLSv1.3"{{/if}}) |
vs.
- silently using the first array item:
MinVersion: tls.{{#if (eq output.protocols.[0] "TLSv1")}}VersionTLS10{{else}}{{{replace output.protocols.[0] "TLSv1." "VersionTLS1"}}}{{/if}}, |
(these are used more often)
arrays don't have to be sorted per se, but they are…
Metadata
Metadata
Assignees
Labels
No labels