gen-cert.sh 360 Bytes
Newer Older
Pablo Panero's avatar
Oauth  
Pablo Panero committed
1
2
3
4
5
6
7
8
#!/usr/bin/env bash

openssl genrsa -des3 -passout pass:x -out wsgi.pass.key 2048
openssl rsa -passin pass:x -in wsgi.pass.key -out wsgi.key
rm wsgi.pass.key
openssl req -new -key wsgi.key -out wsgi.csr \
  -subj "/C=CH/ST=Geneve/L=Geneve/O=CERN/OU=IT Department/CN=Search as a Service"
openssl x509 -req -days 365 -in wsgi.csr -signkey wsgi.key -out wsgi.crt