원클릭으로
ssl
Certbot 安装、Let's Encrypt 证书申请、自动续期、nginx/apache 集成、泛域名证书
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Certbot 安装、Let's Encrypt 证书申请、自动续期、nginx/apache 集成、泛域名证书
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
生成或审计模块的 SPEC.md。使用场景:用户要求"给 XX 模块写 spec"、"审计所有 spec"、"检查 spec 是否过期"。
Automates SailFish release workflow: fix build/type errors, update CHANGELOG (EN + CN), run npm version with pre/post hooks. Use when the user asks to release, 发版, 发布, bump version, or update changelog.
后端代码修改后,通过 CLI 测试验证功能正确性。使用场景:修改了 electron/services/ 下的代码需要测试、准备提交代码前跑回归、用户要求"跑测试"/"验证一下"。
完成新功能开发或较大修改后,使用本机 Claude CLI 进行代码审查。
使用 ts-morph 静态分析工具查询代码结构(类层次、方法签名、引用、依赖等),替代手动读源码。使用场景:需要了解类的方法/属性、继承链、符号引用、文件结构、依赖关系时。
When committing or staging changes, only include files related to the current task or conversation; do not stage or commit unrelated modifications. Use when the user asks to commit, stage, 提交, or when preparing to run git add/commit.
| name | SSL 证书管理 |
| description | Certbot 安装、Let's Encrypt 证书申请、自动续期、nginx/apache 集成、泛域名证书 |
| version | 1.0 |
使用 Let's Encrypt 管理 HTTPS 证书的常用流程。
# Ubuntu/Debian
sudo apt update && sudo apt install certbot
# 使用 snap(推荐,自动更新)
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# 单域名(standalone 模式,需临时停 80 端口服务)
sudo certbot certonly --standalone -d example.com
# Webroot 模式(与 nginx/apache 共用 80 端口)
sudo certbot certonly --webroot -w /var/www/html -d example.com
# 泛域名(需 DNS 验证)
sudo certbot certonly --manual --preferred-challenges dns -d "*.example.com" -d example.com
# 测试续期
sudo certbot renew --dry-run
# 续期后重载 nginx
# 在 /etc/letsencrypt/renewal-hooks/deploy/ 中放置脚本:
# echo "nginx -s reload" > deploy/nginx-reload.sh && chmod +x deploy/nginx-reload.sh
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
_acme-challenge TXT 记录certbot-dns-* 插件(如 certbot-dns-cloudflare)实现自动化