diff --git a/README.md b/README.md index 0533689..bba6a18 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ This script is a wrapper around OpenSSL to manage a small useradd shellpki --system -M --home-dir /etc/shellpki --shell /usr/sbin/nologin mkdir /etc/shellpki install -m 0640 openssl.cnf /etc/shellpki/ -install -m 0755 shellpki.sh /usr/local/sbin/shellpki +install -m 0755 shellpki /usr/local/sbin/shellpki chown -R shellpki: /etc/shellpki ~~~ @@ -26,7 +26,7 @@ chown -R shellpki: /etc/shellpki useradd -r 1..1000 -d /etc/shellpki -s /sbin/nologin _shellpki mkdir /etc/shellpki install -m 0640 openssl.cnf /etc/shellpki/ -install -m 0755 shellpki.sh /usr/local/sbin/shellpki +install -m 0755 shellpki /usr/local/sbin/shellpki chown -R _shellpki:_shellpki /etc/shellpki ~~~ @@ -58,38 +58,38 @@ cipher AES-256-CBC ## Usage ~~~ -Usage: ./shellpki.sh [options] [CommonName] +Usage: ./shellpki [options] [CommonName] ~~~ Initialize PKI (create CA key and self-signed cert) : ~~~ - ./shellpki.sh init + ./shellpki init ~~~ Create a client cert with key and CSR directly generated on server (use -p for set a password on client key) : ~~~ - ./shellpki.sh create [-p] + ./shellpki create [-p] ~~~ Create a client cert from a CSR (doesn't need key) : ~~~ - ./shellpki.sh create -f + ./shellpki create -f ~~~ Revoke a client cert with is commonName (CN) : ~~~ - ./shellpki.sh revoke + ./shellpki revoke ~~~ List all actually valid commonName (CN) : ~~~ - ./shellpki.sh list + ./shellpki list ~~~ ## License diff --git a/Vagrantfile b/Vagrantfile index 0cf23d6..47193c3 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -20,7 +20,7 @@ if [ "$(uname)" = "OpenBSD" ]; then id _shellpki 2>&1 >/dev/null || useradd -r 1..1000 -d /etc/shellpki -s /sbin/nologin _shellpki fi ln -sf /vagrant/openssl.cnf /etc/shellpki/ -ln -sf /vagrant/shellpki.sh /usr/local/sbin/shellpki +ln -sf /vagrant/shellpki /usr/local/sbin/shellpki SCRIPT nodes = [ diff --git a/shellpki.sh b/shellpki similarity index 100% rename from shellpki.sh rename to shellpki