Generate stronger p12_export_password (#654)

This buys us an extra 16bits of password guessing entropy by expanding the characterset from hex to [a-zA-Z0-9_@]
This commit is contained in:
Paul Harvey 2017-09-03 22:22:15 +10:00
parent 8009778012
commit eb3810eba0

View file

@ -30,7 +30,7 @@
- name: Generate p12 export password
local_action:
module: shell
openssl rand -hex 4
openssl rand 8 | python -c 'import sys,string; chars=string.ascii_letters + string.digits + "_@"; print "".join([chars[ord(c) % 64] for c in list(sys.stdin.read())])'
become: no
register: p12_export_password_generated
when: p12_export_password is not defined