- #!/bin/bash
- # call this script with an email address (valid or not).
- # like:
- # ./makecert.sh
- mkdir certs
- rm certs/*
- echo "make server cert"
- openssl req -new -nodes -x509 -out certs/server.pem -keyout certs/server.key -days 3650 -subj "/C=HZ/ST=ZJ/L=CN/O=FZM Company/OU=IT/CN=www.33.cn/emailAddress=niniwzw@qq.com"
- echo "make client cert"
- openssl req -new -nodes -x509 -out certs/client.pem -keyout certs/client.key -days 3650 -subj "/C=HZ/ST=ZJ/L=CN/O=FZM Company/OU=IT/CN=www.33.cn/emailAddress=niniwzw@qq.com"
|