# acme.sh **Repository Path**: thinknull/acme.sh ## Basic Information - **Project Name**: acme.sh - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-10-17 - **Last Updated**: 2024-10-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 如何安装 来源: https://github.com/acmesh-official/acme.sh/wiki/How-to-install 卡拉万编辑了此页面on Jul 10 · 37 次修订 使用系统更新中的最新 CA 捆绑包和补丁更新 Linux/BSD 系统,否则在生成免费 SSL 证书时可能会出现一些问题。完成后开始以下安装过程。 CentO:yum update ca-certificates Debian:(apt update ; apt install ca-certificates如果已安装则更新包) 也适用于基于 Debian 的发行版,如 Ubuntu、LinuxMint 等。 1. 从网络安装:https://get.acme.sh 安装https://github.com/acmesh-official/acme.sh curl https://get.acme.sh | sh -s email=my@example.com 或者 wget -O - https://get.acme.sh | sh -s email=my@example.com 2. 或者,从 GitHub 安装: curl https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh | sh -s -- --install-online -m my@example.com 或者: wget -O - https://raw.githubusercontent.com/acmesh-official/acme.sh/master/acme.sh | sh -s -- --install-online -m my@example.com 3. 或者,git 克隆并安装: git clone --depth 1 https://github.com/acmesh-official/acme.sh.git cd acme.sh ./acme.sh --install -m my@example.com 4.高级安装 git clone --depth 1 https://github.com/acmesh-official/acme.sh.git cd acme.sh ./acme.sh --install \ --home ~/myacme \ --config-home ~/myacme/data \ --cert-home ~/mycerts \ --accountemail "my@example.com" \ --accountkey ~/myaccount.key \ --accountconf ~/myaccount.conf \ --useragent "this is my client." 您不需要全部设置,只需设置您关心的那些即可。 说明: --home是要安装的自定义目录acme.sh。默认情况下,它安装到~/.acme.sh --config-home是一个可写文件夹,acme.sh 将在其中写入所有文件(包括证书/密钥、配置)。默认情况下,它位于--home --cert-home是一个自定义目录,用于保存您颁发的证书。默认情况下,它保存在--config-home. --accountemail是用于注册 Let's Encrypt 帐户的电子邮件,您将在此处收到续订通知电子邮件。 --accountkey是保存您的帐户私钥的文件。默认情况下,它保存在--config-home. --useragent 是用于发送到 Let's Encrypt 的用户代理标头值。 --nocron安装 acme.sh 而不使用 cronjob 5. 特殊情况:将 LE 帐户数据从 certbot 转换为 acme.sh 如果已经使用 certbot,则可以将其 LE 帐户数据转换为 acme.sh 格式。请参阅https://github.com/maddes-b/linux-stuff/tree/main/acme.sh。 如果重复使用从 certbot 创建的 LE 帐户,则建议在安装过程中不要指定-m/--email。