EasyRSA: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
(Die Seite wurde neu angelegt: „ ==User certificates with passwords in scripts== Add a line after <i># output_password = secret</i>: <source lang=bash> # output_password = secret output_pas…“)
 
No edit summary
Line 15: Line 15:
KEY_PASS="password" ./build-key-pass --batch user
KEY_PASS="password" ./build-key-pass --batch user
</source>
</source>
This is useful for batch generation of many client certificates.

Revision as of 19:05, 11 February 2016


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.