openssl 自签名证书。
openssl genrsa -out cert.key 2048 openssl req -new -key cert.key -out cert.csr openssl x509 -req -days 1000 -in cert.csr -signkey cert.key -out cert.pem