日韩欧美人妻无码精品白浆,www.大香蕉久久网,狠狠的日狠狠的操,日本好好热在线观看

LOGO OA教程 ERP教程 模切知識(shí)交流 PMS教程 CRM教程 開發(fā)文檔 其他文檔  
 
網(wǎng)站管理員

windows下使用Certbot申請(qǐng)通配符證書

freeflydom
2025年6月10日 14:46 本文熱度 438

一、下載并安裝軟件

在這個(gè)網(wǎng)站下載最新的軟件并安裝https://github.com/certbot/certbot/?


github下載certbot安裝程序


下載完成后直接雙擊安裝就行了

安裝完成后,以管理員方式運(yùn)行cmd,輸入cretbot --version,如果有顯示就說明安裝成功了

C:\Windows\System32>certbot --version
certbot 2.5.0

命令行工具使用說明


用法:
  certbot [子命令] [選項(xiàng)] [-d 域名] [-d 域名] ...

Certbot工具用于獲取和安裝 HTTPS/TLS/SSL 證書。默認(rèn)情況下,Certbot會(huì)嘗試為本地網(wǎng)頁(yè)服務(wù)器
(如果不存在會(huì)默認(rèn)安裝一個(gè)到本地)獲取并安裝證書。最常用的子命令和選項(xiàng)如下:

獲取, 安裝, 更新證書:
    (默認(rèn)) run       獲取并安裝證書到當(dāng)前網(wǎng)頁(yè)服務(wù)器
    certonly        獲取或更新證書,但是不安裝
    renew           更新已經(jīng)獲取但快過期的所有證書
   -d 域名列表        指定證書對(duì)應(yīng)的域名列表,域名之間使用逗號(hào)分隔

  --apache          使用Apache插件進(jìn)行身份認(rèn)證和安裝
  --standalone      運(yùn)行一個(gè)獨(dú)立的網(wǎng)頁(yè)服務(wù)器用于身份認(rèn)證
  --nginx           使用Nginx插件進(jìn)行身份認(rèn)證和安裝
  --webroot         把身份認(rèn)證文件放置在服務(wù)器的網(wǎng)頁(yè)根目錄下
  --manual          使用交互式或腳本鉤子的方式獲取證書

   -n               非交互式運(yùn)行
  --test-cert       從預(yù)交付服務(wù)器上獲取測(cè)試證書
  --dry-run         測(cè)試獲取或更新證書,但是不存儲(chǔ)到本地硬盤

證書管理:
    certificates    顯示使用Certbot生成的所有證書的信息
    revoke          撤銷證書(supply --cert-path)
    delete          刪除證書

二、申請(qǐng)通配符證書的命令

certbot certonly -d "*.example.top" -d example.top --manual --preferred-challenges dns-01 --server https://acme-v02.api.letsencrypt.org/directory

命令說明:

  • certonly 安裝模式
  • -d 申請(qǐng)證書的域名,如果是通配符域名輸入 *.http://example.com
  • –manual 使用交互式或腳本鉤子的方式獲取證書
  • –preferred-challenges dns 使用 DNS 方式校驗(yàn)域名所有權(quán)
  • –server,Let’s Encrypt ACME v2 版本使用的服務(wù)器不同于 v1 版本,需要顯示指定


官網(wǎng)里v2說明


*.example.top換成你想要申請(qǐng)的域名就可以了,接下來,會(huì)提示需要進(jìn)行手動(dòng)驗(yàn)證DNS:

Saving debug log to C:\Certbot\log\letsencrypt.log
Requesting a certificate for *.example.top and example.top

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please deploy a DNS TXT record under the name:

_acme-challenge.example.top.

with the following value:

MeZetcO-5n_7WeJIitM_eAR8lWUZ2EQriWOg1OxBcaE

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Continue

我的域名是阿里云申請(qǐng)的域名,去域名解析那手動(dòng)添加一條TXT記錄就可以了,我這里申請(qǐng)的是通配符域名,還有一級(jí)域名,就需要添加兩條記錄來驗(yàn)證

Please deploy a DNS TXT record under the name:

_acme-challenge.example.top.

with the following value:

8eBntKwxymhu1erZuE7J9KPZnuxmE6kiYnBrDD3DkXU

(This must be set up in addition to the previous challenges; do not remove,
replace, or undo the previous challenge tasks yet. Note that you might be
asked to create multiple distinct TXT records with the same name. This is
permitted by DNS standards.)

Before continuing, verify the TXT record has been deployed. Depending on the DNS
provider, this may take some time, from a few seconds to multiple minutes. You can
check if it has finished deploying with aid of online tools, such as the Google
Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.example.top.
Look for one or more bolded line(s) below the line ';ANSWER'. It should show the
value(s) you've just added.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Continue

根據(jù)提示操作完成后,在域名解析那就有兩條TXT記錄了,如下:


設(shè)置好之后的域名解析


接著就會(huì)顯示申請(qǐng)成功的信息了

Successfully received certificate.
Certificate is saved at: C:\Certbot\live\example.top\fullchain.pem
Key is saved at:         C:\Certbot\live\example.top\privkey.pem
This certificate expires on 2023-08-05.
These files will be updated when the certificate renews.

NEXT STEPS:
- This certificate will not be renewed automatically. Autorenewal of --manual certificates requires the use of an authentication hook script (--manual-auth-hook) but one was not provided. To renew this certificate, repeat this same certbot command before the certificate's expiry date.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

這里已經(jīng)提示的證書的存放位置,直接進(jìn)c盤去找就好了,這里發(fā)現(xiàn)這些文件是快捷方式,然后還有一個(gè)readme文件,打開里面提示是不要移動(dòng)也不要修改名稱,看一下快捷方式的屬性就發(fā)現(xiàn)證書文件存在了另一個(gè)文件夾:C:\Certbot\archive

This directory contains your keys and certificates.

`privkey.pem`  : the private key for your certificate.
`fullchain.pem`: the certificate file used in most server software.
`chain.pem`    : used for OCSP stapling in Nginx >=1.3.7.
`cert.pem`     : will break many server configurations, and should not be used
                 without reading further documentation (see link below).

WARNING: DO NOT MOVE OR RENAME THESE FILES!
         Certbot expects these files to remain in this location in order
         to function properly!

We recommend not moving these files. For more information, see the Certbot
User Guide at https://certbot.eff.org/docs/using.html#where-are-my-certificates.

既然不讓我移動(dòng)或改名,那我復(fù)制出來使用就可以了。

三、關(guān)于續(xù)簽證書

剛剛申請(qǐng)成功的地方,有一個(gè)關(guān)于續(xù)簽的說明如下:

NEXT STEPS:
- This certificate will not be renewed automatically. Autorenewal of --manual certificates requires the use of an authentication hook script (--manual-auth-hook) but one was not provided. To renew this certificate, repeat this same certbot command before the certificate's expiry date.

翻譯過來就是說:

下一個(gè)步驟:

—該證書不會(huì)自動(dòng)更新。——manual證書的自動(dòng)更新需要使用身份驗(yàn)證掛鉤腳本(——manual-auth-hook),但沒有提供。要更新該證書,請(qǐng)?jiān)谧C書到期之前重復(fù)相同的certbot命令。

我理解就是如果下次經(jīng)續(xù)簽,可能就是要重新申請(qǐng)一次。反正也不麻煩,大概幾分鐘就搞定了,那就下次再重新申請(qǐng)吧。

轉(zhuǎn)自https://zhuanlan.zhihu.com/p/627526278


該文章在 2025/6/10 14:47:32 編輯過
關(guān)鍵字查詢
相關(guān)文章
正在查詢...
點(diǎn)晴ERP是一款針對(duì)中小制造業(yè)的專業(yè)生產(chǎn)管理軟件系統(tǒng),系統(tǒng)成熟度和易用性得到了國(guó)內(nèi)大量中小企業(yè)的青睞。
點(diǎn)晴PMS碼頭管理系統(tǒng)主要針對(duì)港口碼頭集裝箱與散貨日常運(yùn)作、調(diào)度、堆場(chǎng)、車隊(duì)、財(cái)務(wù)費(fèi)用、相關(guān)報(bào)表等業(yè)務(wù)管理,結(jié)合碼頭的業(yè)務(wù)特點(diǎn),圍繞調(diào)度、堆場(chǎng)作業(yè)而開發(fā)的。集技術(shù)的先進(jìn)性、管理的有效性于一體,是物流碼頭及其他港口類企業(yè)的高效ERP管理信息系統(tǒng)。
點(diǎn)晴WMS倉(cāng)儲(chǔ)管理系統(tǒng)提供了貨物產(chǎn)品管理,銷售管理,采購(gòu)管理,倉(cāng)儲(chǔ)管理,倉(cāng)庫(kù)管理,保質(zhì)期管理,貨位管理,庫(kù)位管理,生產(chǎn)管理,WMS管理系統(tǒng),標(biāo)簽打印,條形碼,二維碼管理,批號(hào)管理軟件。
點(diǎn)晴免費(fèi)OA是一款軟件和通用服務(wù)都免費(fèi),不限功能、不限時(shí)間、不限用戶的免費(fèi)OA協(xié)同辦公管理系統(tǒng)。
Copyright 2010-2025 ClickSun All Rights Reserved

超碰麻豆群交| 中文字幕国内精品日本| 天天干天天操天天日天天装| 亚洲国产中文一区二区97| 欧美超级黄片| 先锋资源av| 美女少妇久久久| 好吊妞免费高清在线视频| 757影视| 久久资源亚洲综合| 久久少妇电影院精品| 免费欧洲毛片| 亚洲一级自拍偷拍| 日本久久在线观看一区二区| 亚洲一区二区宅男精品| www玖玖大香蕉| 欧美久久一区粉嫩| 在线观看免费观看日B视频| 久久性日本少妇视频| 91久久人人妻| 胶南市| 大香蕉蜜桃在线| 夜夜嗨AV影院| 亚洲91欧美日| 高中生后入无码| 日韩一区二区大香蕉| .www好吊妞.com| 日韩激情免费在线视频| 中文字幕第一区Av| 天天色天天日天天射射久久| tube8 嗯嗯 高辣 一区二区| 欧美日韩午夜老湿机福利| 无码a∨中文一区二区| 日本伊人高清不卡一区二区| 日韩欧美夜夜操| 破处视频二区| 久久一次丁香婷婷| 亚洲毛片XXXXXXXXX| 操白丝久久| 亚洲色老师视频一区二区| 中文字幕处女|