Exclude CA from P12 (#835)

This commit is contained in:
Jack Ivanov
2018-03-17 17:16:22 -04:00
committed by Dan Guido
parent 62fc22ab59
commit 4e4440a318
2 changed files with 1 additions and 1 deletions
-1
View File
@@ -117,7 +117,6 @@
-export
-name {{ item }}
-out private/{{ item }}.p12
-certfile cacert.pem
-passout pass:"{{ easyrsa_p12_export_password }}"
args:
chdir: "configs/{{ IP_subject_alt_name }}/pki/"
@@ -1,6 +1,7 @@
function AddAlgoVPN {
certutil -f -importpfx .\{{ item }}.p12
certutil -addstore root .\cacert.pem
Add-VpnConnection -name "Algo VPN {{ IP_subject_alt_name }} IKEv2" -ServerAddress "{{ IP_subject_alt_name }}" -TunnelType IKEv2 -AuthenticationMethod MachineCertificate -EncryptionLevel Required
Set-VpnConnectionIPsecConfiguration -ConnectionName "Algo VPN {{ IP_subject_alt_name }} IKEv2" -AuthenticationTransformConstants GCMAES128 -CipherTransformConstants GCMAES128 -EncryptionMethod AES128 -IntegrityCheckMethod SHA384 -DHGroup ECP256 -PfsGroup ECP256 -Force
}