Add documentation for install on OpenBSD

This commit is contained in:
Victor LABORIE 2018-10-24 15:21:43 +02:00
parent 545d251eab
commit 39bddf87ae
1 changed files with 19 additions and 1 deletions

View File

@ -4,11 +4,14 @@ This script is a wrapper around openssl to manage a small PKI.
## Install
### Debian
~~~
mkdir /etc/shellpki
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
chown -R shellpki: /etc/shellpki
~~~
~~~
@ -16,6 +19,21 @@ install -m 0755 shellpki.sh /usr/local/sbin/shellpki
%shellpki ALL = (root) /usr/local/sbin/shellpki
~~~
### OpenBSD
~~~
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
chown -R _shellpki:_shellpki /etc/shellpki
~~~
~~~
# visudo -f /etc/sudoers
%_shellpki ALL = (root) /usr/local/sbin/shellpki
~~~
## Usage
~~~