百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

acme

> 编程语言
开源

一个简单的 ACME 命令行工具,无需第三方依赖!

383 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一个简单的 ACME 命令行工具,无需第三方依赖!

acme

A simple command line tool to manage TLS certificates with ACME-compliant CAs, which has no third party dependencies.

If you're looking for a package to import in your program, golang.org/x/crypto/acme or golang.org/x/crypto/acme/autocert is what you'll want instead.

This package is a work in progress and makes no API stability promises.

Usage

Quick install with go get -u github.com/google/acme or download a pre-built binary from the releases page.

The release binaries have an additional command, acme version, which reports the release version.

  1. You need to have a user account, registered with the CA. This is represented by an RSA private key.

The easiest is to let the acme tool generate it for you:

    acme reg -gen mailto:[email protected]

If you want to generate a key manually:

    mkdir -p ~/.config/acme
    openssl genrsa -out ~/.config/acme/account.key 4096
    acme reg mailto:[email protected]

The latter version assumes that default acme config dir is ~/.config/acme. Yours may vary. Check with acme help reg.

The "mailto:[email protected]" in the example above is a contact argument. While some ACME CA may let you register without providing any contact info, it is recommended to use one. For instance a CA might need to notify cert owners with an update.

  1. Agree with the ACME CA Terms of Service.

Before requesting your first certificate, you may need to accept the terms of the CA. You can check the status of your account with:

    acme whoami

and look for the "Accepted: ..." line. If it says "no", check the CA's terms document provided as a link in "Terms: ..." field and agree by executing:

    acme update -accept
  1. Request a new certificate for your domain.

The easiest way to do this is:

    acme cert example.com

The above command will generate a new certificate key (unless one already exists), and send a certificate request. The location of the output files is ~/.config/acme, but depends on your environment. You can check this location with acme help cert.

If you don't want to auto-generate a cert key, one can always be generated upfront:

    openssl genrsa -out cert.key 2048

in which case the cert command will look something like this:

    acme cert -k cert.key example.com

Note that for the certificate request command to succeed, it needs to be executed in a way allowing for resolving authorization challenges (domain ownership proof). This typically means the command should be executed on the same host the domain is served from.

If the latter is not possible, use the -manual flag and follow the instructions:

    acme cert -manual example.com

License

(c) Google, 2015. Licensed under Apache-2 license.

This is not an official Google product.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言