2021-10-15 16:36:09 +08:00
2021-10-15 16:36:09 +08:00
2021-05-06 00:23:47 +08:00
2021-10-15 16:36:09 +08:00
2021-10-15 16:36:09 +08:00
2021-09-04 17:57:35 +08:00
2021-04-30 00:08:50 +08:00
2021-05-05 16:47:07 +08:00

acme-client-rs

ACME Client in Rust

Acme client help:

$ acme-client --help
acme-client 0.5.0
Hatter Jiang <jht5945@gmail.com>
Acme auto challenge client, acme-client can issue certificates from Let's encrypt

USAGE:
    acme-client [FLAGS] [OPTIONS]

FLAGS:
        --check             Check cert config
    -h, --help              Prints help information
        --hide-logo         Hide logo
        --skip-verify-ip    Skip verify public ip
    -v, --verbose           Verbose
    -V, --version           Print version

OPTIONS:
    -a, --algo <algo>           Pki algo [default: ec384]
    -c, --config <config>       Cert config
        --dir <dir>             Account key dir [default: acme_dir]
    -d, --domain <domain>...    Domains
        --email <email>         Contract email
    -m, --mode <mode>           Mode [default: prod]
    -p, --port <port>           Http port [default: 80]
        --timeout <timeout>     Timeout (ms) [default: 5000]
    -t, --type <type>           Type http or dns [default: http]

签发一张证书示例

  • 先将域名指向对应的服务器,保证服务器上的 80 端口可被互联网访问
  • acme-client --email your-email@example.com --domain your-domain.example.com

使用参数 --config 时的配置文件示例:

{
  "certItems": [{
    "path": "dir_cryptofan_org",
    "dnsNames": ["cryptofan.org", "www.cryptofan.org"]
  }]
}

Cross build uses: https://github.com/messense/rust-musl-cross

Description
ACME Client in Rust
Readme MIT 1.2 MiB
Languages
Rust 99.8%
Just 0.2%