mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-02 19:03:04 +02:00
use openssl rand -base64
to generate password
This commit is contained in:
parent
af3ee9809f
commit
11b34e5395
1 changed files with 1 additions and 2 deletions
|
@ -6,8 +6,7 @@
|
||||||
|
|
||||||
- name: Generate p12 export password
|
- name: Generate p12 export password
|
||||||
shell: >
|
shell: >
|
||||||
openssl rand 8 |
|
openssl rand -base64 9
|
||||||
python3 -c 'import sys,string; chars=string.ascii_letters + string.digits + "_@"; print("".join([chars[ord(c) % 64] for c in list(sys.stdin.read())]))'
|
|
||||||
register: p12_password_generated
|
register: p12_password_generated
|
||||||
when: p12_password is not defined
|
when: p12_password is not defined
|
||||||
tags: update-users
|
tags: update-users
|
||||||
|
|
Loading…
Add table
Reference in a new issue