makecert.sh 511 B

12345678910
  1. #!/bin/bash
  2. # call this script with an email address (valid or not).
  3. # like:
  4. # ./makecert.sh
  5. mkdir certs
  6. rm certs/*
  7. echo "make server cert"
  8. 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"
  9. echo "make client cert"
  10. 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"