网友真实露脸自拍10p,成人国产精品秘?久久久按摩,国产精品久久久久久无码不卡,成人免费区一区二区三区

小程序模板網(wǎng)

關(guān)于開(kāi)發(fā)微信小程序后端linux使用xampp配置https

發(fā)布時(shí)間:2018-04-18 10:53 所屬欄目:小程序開(kāi)發(fā)教程

背景

 

由于最近開(kāi)發(fā)微信小程序,前后端交互需要使用https協(xié)議,故需要配置https服務(wù)

服務(wù)器環(huán)境 
服務(wù)器系統(tǒng) ubuntu 
環(huán)境 xampp 
SSL服務(wù) let's encript

 

步驟

 

安裝certbot-auto:

 

  1. wget https://dl.eff.org/certbot-auto --no-check-certificate
  2. chmod +x ./certbot-auto
  3. ./certbot-auto -n

申請(qǐng)證書:

 

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

證書在/etc/letsencrypt/live/xxxxx.com目錄下,  然后我們需要兩個(gè):fullchain.pem和privkey.pem,  將其移動(dòng)到/opt/lampp/etc/ssl.crt和/opt/lampp/etc/ssl.key中,  并進(jìn)行相應(yīng)改名為 server.key和server.crt

開(kāi)啟xampp的ssl功能:xampp enablessl


易優(yōu)小程序(企業(yè)版)+靈活api+前后代碼開(kāi)源 碼云倉(cāng)庫(kù):starfork
本文地址:http://www.xiuhaier.com/wxmini/doc/course/23675.html 復(fù)制鏈接 如需定制請(qǐng)聯(lián)系易優(yōu)客服咨詢:800182392 點(diǎn)擊咨詢
QQ在線咨詢
AI智能客服 ×