mirror of
https://github.com/trailofbits/algo.git
synced 2025-09-07 04:24:08 +02:00
Final iteration. I think that's all I can do to minimize the changes
This commit is contained in:
parent
9b905917cc
commit
657ad0c3d8
3 changed files with 6 additions and 6 deletions
|
@ -197,7 +197,7 @@
|
||||||
chdir: "configs/{{ IP_subject_alt_name }}/pki/"
|
chdir: "configs/{{ IP_subject_alt_name }}/pki/"
|
||||||
creates: certs/{{ item }}_crt_generated
|
creates: certs/{{ item }}_crt_generated
|
||||||
environment:
|
environment:
|
||||||
subjectAltName: "DNS:{{ item }},IP:{{ IP_subject_alt_name }}"
|
subjectAltName: "DNS:{{ item }}"
|
||||||
with_items: "{{ users }}"
|
with_items: "{{ users }}"
|
||||||
|
|
||||||
- name: Build the client's p12
|
- name: Build the client's p12
|
||||||
|
@ -212,7 +212,7 @@
|
||||||
local_action:
|
local_action:
|
||||||
module: copy
|
module: copy
|
||||||
src: "configs/{{ IP_subject_alt_name }}/pki/private/{{ item }}.p12"
|
src: "configs/{{ IP_subject_alt_name }}/pki/private/{{ item }}.p12"
|
||||||
dest: "configs/{{ IP_subject_alt_name }}/{{IP_subject_alt_name }}_{{ item }}.p12"
|
dest: "configs/{{ IP_subject_alt_name }}/{{ item }}.p12"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
become: no
|
become: no
|
||||||
with_items:
|
with_items:
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
certutil -f -p {{ easyrsa_p12_export_password }} -importpfx .\{{ IP_subject_alt_name }}_{{ item }}.p12
|
certutil -f -p {{ easyrsa_p12_export_password }} -importpfx .\{{ item }}.p12
|
||||||
Add-VpnConnection -name "Algo" -ServerAddress "{{ IP_subject_alt_name }}" -TunnelType IKEv2 -AuthenticationMethod MachineCertificate -EncryptionLevel Required
|
Add-VpnConnection -name "Algo" -ServerAddress "{{ IP_subject_alt_name }}" -TunnelType IKEv2 -AuthenticationMethod MachineCertificate -EncryptionLevel Required
|
||||||
Set-VpnConnectionIPsecConfiguration -ConnectionName "Algo" -AuthenticationTransformConstants SHA256128 -CipherTransformConstants AES256 -EncryptionMethod AES256 -IntegrityCheckMethod SHA256 -DHGroup Group14 -PfsGroup none
|
Set-VpnConnectionIPsecConfiguration -ConnectionName "Algo" -AuthenticationTransformConstants SHA256128 -CipherTransformConstants AES256 -EncryptionMethod AES256 -IntegrityCheckMethod SHA256 -DHGroup Group14 -PfsGroup none
|
||||||
|
|
|
@ -71,7 +71,7 @@
|
||||||
chdir: "configs/{{ IP_subject_alt_name }}/pki/"
|
chdir: "configs/{{ IP_subject_alt_name }}/pki/"
|
||||||
creates: certs/{{ item }}_crt_generated
|
creates: certs/{{ item }}_crt_generated
|
||||||
environment:
|
environment:
|
||||||
subjectAltName: "DNS:{{ item }},IP:{{ IP_subject_alt_name }}"
|
subjectAltName: "DNS:{{ item }}"
|
||||||
with_items: "{{ users }}"
|
with_items: "{{ users }}"
|
||||||
|
|
||||||
- name: Build the client's p12
|
- name: Build the client's p12
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
local_action:
|
local_action:
|
||||||
module: copy
|
module: copy
|
||||||
src: "configs/{{ IP_subject_alt_name }}/pki/private/{{ item }}.p12"
|
src: "configs/{{ IP_subject_alt_name }}/pki/private/{{ item }}.p12"
|
||||||
dest: "configs/{{ IP_subject_alt_name }}/{{ IP_subject_alt_name }}_{{ item }}.p12"
|
dest: "configs/{{ IP_subject_alt_name }}/{{ item }}.p12"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
become: no
|
become: no
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -110,7 +110,7 @@
|
||||||
chdir: "configs/{{ IP_subject_alt_name }}/pki/"
|
chdir: "configs/{{ IP_subject_alt_name }}/pki/"
|
||||||
creates: crl/{{ item }}_revoked
|
creates: crl/{{ item }}_revoked
|
||||||
environment:
|
environment:
|
||||||
subjectAltName: "DNS:{{ item }},IP:{{ IP_subject_alt_name }}"
|
subjectAltName: "DNS:{{ item }}"
|
||||||
when: item not in users
|
when: item not in users
|
||||||
with_items: "{{ valid_certs.stdout_lines }}"
|
with_items: "{{ valid_certs.stdout_lines }}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue