Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Commit

Permalink
Generate stronger p12_export_password (trailofbits#654) (trailofbits#657
Browse files Browse the repository at this point in the history
)

This buys us an extra 16bits of password guessing entropy by expanding the characterset from hex to [a-zA-Z0-9_@]
  • Loading branch information
csirac2 authored and gunph1ld committed Sep 29, 2017
1 parent 073df1c commit 594cc45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playbooks/facts/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 594cc45

Please sign in to comment.