diff --git a/README.md b/README.md index 15df575..29353ec 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ Usage: shellpki [options] [CommonName] Initialize PKI (create CA key and self-signed certificate) : ~~~ -shellpki init +shellpki init [options] Options --non-interactive do not prompt the user, and exit if an error occurs @@ -76,14 +76,14 @@ Options Create a client certificate with key and CSR directly generated on server : ~~~ -shellpki create +shellpki create [options] Options -f, --file, --csr-file create a client certificate from a CSR (doesn't need key) -p, --password prompt the user for a password to set on the client key --password-file if provided with a path to a readable file, the first line is read and set as password on the client key --days specify how many days the certificate should be valid - --end-date specify until which date the certificate should be valid, in MM/DD/[YY]YY [hh:mm:ss] format + --end-date specify until which date the certificate should be valid, in MM/DD/YYYY hh:mm:ss format --non-interactive do not prompt the user, and exit if an error occurs --replace-existing if the certificate already exists, revoke it before creating a new one ~~~ @@ -91,7 +91,7 @@ Options Revoke a client certificate : ~~~ -shellpki revoke +shellpki revoke [options] Options --non-interactive do not prompt the user, and exit if an error occurs diff --git a/shellpki b/shellpki index 55bec09..f255180 100755 --- a/shellpki +++ b/shellpki @@ -31,17 +31,18 @@ END show_usage() { cat < [options] [CommonName] +Warning: [options] always must be before [CommonName] and after Initialize PKI (create CA key and self-signed certificate) : - ${0} init + ${0} init [options] Options --non-interactive do not prompt the user, and exit if an error occurs Create a client certificate with key and CSR directly generated on server : - ${0} create + ${0} create [options] Options -f, --file, --csr-file create a client certificate from a CSR (doesn't need key) @@ -54,7 +55,7 @@ Create a client certificate with key and CSR directly generated on server : Revoke a client certificate : - ${0} revoke + ${0} revoke [options] Options --non-interactive do not prompt the user, and exit if an error occurs