5 lines
364 B
Bash
5 lines
364 B
Bash
|
openssl genrsa -out ../.certificates/$2.key 2048
|
||
|
openssl req -new -sha256 -key ../.certificates/$2.key -subj "/C=GB/ST=Devon/O=SiGyl/OU=Gitea/CN=$1" -out ../.certificates/$2.csr
|
||
|
|
||
|
openssl x509 -req -in ../.certificates/$2.csr -CA ../.certificates/ca.crt -CAkey ../.certificates/ca.key -CAcreateserial -out ../.certificates/$2.crt -days 10000 -sha256
|