gen.sh 268 B

123456
  1. openssl genrsa -des3 -out server.key 2048
  2. openssl req -new -key server.key -out server.csr
  3. openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
  4. cp server.key server.key.copy
  5. openssl rsa -in server.key.copy -out server.key
  6. rm server.key.copy