Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Subject-Alt-Name: Correct behavior of global option --san
--san|--subject-alt-name current behavior is to append any value to EASYRSA_EXTRA_EXTS and repeatedly insert OpenSSL label 'subjectAltName'. This label should be specified once only. This change leaves EASYRSA_EXTRA_EXTS completely unchanged and outside of EasyRSA scope. This is done due to the lack of definition as to what EASYRSA_EXTRA_EXTS external definition is intended for. EASYRSA_EXTRA_EXTS is still used by command 'renew' but only for SAN. Create 'EASYRSA_SAN' for explicit subjectAltName use. This change correctly formats EASYRSA_SAN, to only begin with the label 'subjectAltName = ' and append user SAN values to that string. Example Command line: --san=DNS:server3 --san=DNS:swerveur3 --san=IP:10.2.2.2 --san=IP:10.1.1.1 --nopass build-server-full s3 Resulting certificate: X509v3 Subject Alternative Name: DNS:server3, DNS:swerveur3, IP Address:10.2.2.2, IP Address:10.1.1.1 The originally required command string: --san=DNS:server3,DNS:swerveur3,IP:10.2.2.2,IP:10.1.1.1 build-server-full s3 is also still supported. Signed-off-by: Richard T Bonhomme <[email protected]>
- Loading branch information