1. 创建ssl证书
openssl req -new -x509 \
-keyout ideawu.net.pem -out ideawu.net.pem \
-days 99365 -nodes
把 ideawu.net.pem 拷贝到 /home/work/lighttpd-1.5/conf/
2. lighttpd配置
$server[socket] == :443 {
$http[host] == ideawu.net {
ssl.engine = enable
ssl.pemfile = /home/work/lighttpd-1.5/conf/ideawu.net.pem
}
}
3. 访问:
https://localhost:443
4. api和工具使用:
wget –no-check-certificate https://localhost:443
curl_setopt($ch, curlopt_ssl_verifypeer, false);
curl_setopt($ch, curlopt_ssl_verifyhost, false);
补充: apache https
openssl genrsa 1024 > server.key
openssl req -new -key server.key > server.csr
openssl req -x509 -days 99365 -key server.key -in server.csr > server.crt
云众科技服务器购买优秀网站设计 如何做一个优秀的网站成都wap网站建设有哪几种方式?整个服务器打不开-云服务器问题提示网站被黑但是路径文件夹找不到房地产网站如何设计效果好?告诉你域名网站申请的注意事项上海“一网统管”发布七项人工智能研究成果