EasyRSA: Difference between revisions
From Lolly's Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
[[Kategorie: Security]] | |||
[[Kategorie: Linux]] | |||
==User certificates with passwords in scripts== | ==User certificates with passwords in scripts== |
Revision as of 19:07, 11 February 2016
Kategorie: Security Kategorie: Linux
User certificates with passwords in scripts
Add a line after # output_password = secret:
# output_password = secret
output_password = $ENV::KEY_PASS
After that the openssl calls taking the needed password from the environment variable KEY_PASS.
You can call it like this for example:
KEY_PASS="password" ./build-key-pass --batch user
This is useful for batch generation of many client certificates.