gencert 210 Bytes
Newer Older
Todor Kondic's avatar
Todor Kondic committed
1
2
3
4
5
6
#!/bin/sh


hname=$1
hip=$2

7
openssl req -x509 -newkey rsa -days 365 -nodes -keyout vnc.priv.pem -out vnc.pub.pem -subj "/CN=${hname}.uni.lux" -addext "subjectAltName=DNS:${hname}.uni.lux"
Todor Kondic's avatar
Todor Kondic committed
8
9
10

chown nobody *.pem