gencert 185 Bytes
Newer Older
Todor Kondic's avatar
Todor Kondic committed
1
2
3
4
5
6
7
8
9
10
#!/bin/sh


hname=$1
hip=$2

openssl req -x509 -newkey rsa -days 365 -nodes -keyout vnc.priv.pem -out vnc.pub.pem -subj "/CN=$hip" -addext "subjectAltName=IP:$hip"

chown nobody *.pem