关于开发微信小程序后端linux使用xampp配置https,微信小程序后端怎么开发

来源:未知 浏览 138次 时间 2021-06-15 00:18

背景  

由于最近开发微信小程序前后端交互需要使用https协议垂直营销前后端交互需要使用https协议故需要配置https服务

服务器环境 
服务器系统 ubuntu 
环境 xampp 
SSL服务 let's encript

关于开发微信小程序后端linux使用xampp配置https

步骤  

安装certbot-auto:

 

关于开发微信小程序后端linux使用xampp配置https

chmod +x ./certbot-auto

./certbot-auto -n

申请证书:

 

./certbot-auto certonly --webroot --webroot-path /opt/lampp/htdocs -d xxxxx.com --agree-tos --email xxxxxx@qq.com

证书在/etc/letsencrypt/live/xxxxx.com目录下,  然后我们需要两个:fullchain.pem和privkey.pem关键词排名故需要配置https服务

服务器环境 
服务器系统 ubuntu 
环境 xampp 
SSL服务 let's encript

 

步骤  

安装certbot-auto:

 

wget https://dl.eff.org/certbot-auto --no-check-certificate

chmod +x ./certbot-auto

./certbot-auto -n

申请证书:

 

./certbot-auto certonly --webroot --webroot-path /opt/lampp/htdocs -d xxxxx.com --agree-tos --email xxxxxx@qq.com

证书在/etc/letsencrypt/live/xxxxx.com目录下,  然后我们需要两个:fullchain.pem和privkey.pem  将其移动到/opt/lampp/etc/ssl.crt和/opt/lampp/etc/ssl.key中  并进行相应改名为 server.key和server.crt

标签: httpsxampp需要