產生https所需要Key.pem與Cert.pem檔案

openssl genpkey -algorithm RSA -out private.pem

openssl req -new -key private.pem -out mydomain.csr

openssl x509 -req -days 365 -in mydomain.csr -signkey private.pem -out certificate.pem

最終得到的private.pem與certificate.pem

Spread the love