Generate stronger p12_export_password (#654) (#657)

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.W Harvey 2017-09-30 00:04:45 +10:00 committed by Jack Ivanov
parent 9582cba128
commit e891d5c43b

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