要在windows下使用win-acme安装ssl证书并实现自动续期,请按照以下步骤操作:
从GitHub下载win-acme: 下载地址为:https://www./link/834520f1cd753417e62225779928fe9e
下载并解压文件: 解压后,目录结构应如下图所示:
打开Windows IIS(Internet Information Services): 通过控制面板——系统和安全——管理工具查看IIS。默认情况下,IIS使用80端口,打开后应看到如下界面:
运行letsencrypt.exe:
进入解压后的文件夹,在cmd中输入letsen(或者直接双击
crypt.exe --sanletsencrypt.exe):
运行后,根据提示选择操作:
N: Create new certificate // 创建新证书 M: Create new certificate with advanced options // 使用高级选项创建新证书 L: List scheduled renewals // 自动续费 R: Renew scheduled // 续费单个 S: Renew specific // 续费多个 A: Renew *all* // 全部续费 V: Revoke certificate // 取消证书 C: Cancel scheduled renewal // 取消某个自动续费 X: Cancel *all* scheduled renewals // 取消全部自动续费 Q: Quit //退出
根据提示,输入相应的内容:
然后,查看并同意协议:
参考资料: