Browse Source

Strip .sh extension from shellpki script

master
Victor Laborie 1 year ago
parent
commit
69948226de
3 changed files with 9 additions and 9 deletions
  1. +8
    -8
      README.md
  2. +1
    -1
      Vagrantfile
  3. +0
    -0
      shellpki

+ 8
- 8
README.md View File

@@ -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 <subcommand> [options] [CommonName]
Usage: ./shellpki <subcommand> [options] [CommonName]
~~~

Initialize PKI (create CA key and self-signed cert) :

~~~
./shellpki.sh init <commonName_for_CA>
./shellpki init <commonName_for_CA>
~~~

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] <commonName>
./shellpki create [-p] <commonName>
~~~

Create a client cert from a CSR (doesn't need key) :

~~~
./shellpki.sh create -f <path>
./shellpki create -f <path>
~~~

Revoke a client cert with is commonName (CN) :

~~~
./shellpki.sh revoke <commonName>
./shellpki revoke <commonName>
~~~

List all actually valid commonName (CN) :

~~~
./shellpki.sh list
./shellpki list
~~~

## License


+ 1
- 1
Vagrantfile View File

@@ -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 = [


shellpki.sh → shellpki View File


Loading…
Cancel
Save