AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1049967
Accepted
AlastairG
AlastairG
Asked: 2021-01-16 05:14:10 +0800 CST2021-01-16 05:14:10 +0800 CST 2021-01-16 05:14:10 +0800 CST

Step-CA 不适用于服务器备用名称 (SAN)

  • 772

使用 SAN 创建证书时 Step-CA 的帮助文本如下:

  Request a new certificate with multiple Subject Alternative Names. The
  Subject Common Name of the certificate will be 'foobar'. However, because
  additional SANs are configured using the --san flag and 'foobar' is not one
  of these, 'foobar' will not be in the SAN extensions of the certificate.
  The certificate will have 2 IP Address extensions (1.1.1.1, 10.2.3.4) and 1
  DNS Name extension (hello.example.com):

      $ step ca certificate --san 1.1.1.1 --san hello.example.com --san 10.2.3.4 foobar internal.crt internal.key

当我尝试如下等效命令时:

step ca certificate --san dtk --san dtk.intranet.local foobar /root/dtk.crt /root/dtk.key

我得到以下输出:

✔ Provisioner: acme-smallstep (ACME)
Using Standalone Mode HTTP challenge to validate dtk .. done!
Using Standalone Mode HTTP challenge to validate dtk.dynautics.local .. done!
Waiting for Order to be 'ready' for finalization .. done!
Finalizing Order .error finalizing order: error finalizing order: CSR names do not match identifiers exactly: CSR names = [dtk dtk.dynautics.local foobar], Order names = [dtk dtk.dynautics.local]

如果我用空字符串替换“foobar”,它会提示我输入主题。如果我将“foobar”替换为“dtk dtk.dynautics.local”作为单个字符串,我会得到:

Finalizing Order .error finalizing order: error finalizing order: CSR names do not match identifiers exactly: CSR names = [dtk dtk dtk.dynautics.local dtk.dynautics.local], Order names = [dtk dtk.dynautics.local]

我很困惑。SAN肯定是常见的东西吗?这个功能肯定是在 Step-CA 发布之前测试过的吗?

为什么他们自己的例子不起作用?

ssl-certificate
  • 1 1 个回答
  • 287 Views

1 个回答

  • Voted
  1. Best Answer
    AlastairG
    2021-01-16T05:25:57+08:002021-01-16T05:25:57+08:00

    Step-CA 帮助文本给出的例子都是错误的。要解决此问题,请使用主名称作为主题。例如:

    step ca certificate --san dtk --san dtk.intranet.local dtk.intranet.local /root/dtk.crt /root/dtk.key
    
    • 1

相关问题

  • RHEL/Apache ssl.conf 配置问题

  • IIS7 中的证书信任列表

  • SSL证书的区别?

  • 如何修复邮件服务器 SSL?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve