打开终端(Terminal)程序,按如下步骤制作证书:
openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
openssl rsa -passin pass:x -in server.pass.key -out server.key
rm server.pass.key
openssl req -new -key server.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey server.key out server.crt
The server.crt file is your site certificate suitable for use with Heroku’s SSL add-on along with the server.key private key.