gpt4 book ai didi

生成自签名证书时 Req 中的 OpenSSL 错误

转载 作者:行者123 更新时间:2023-12-05 02:47:19 27 4
gpt4 key购买 nike

我按照内容创建了CSR文件eidas.csr

    oid_section = OIDs

[ req ]
distinguished_name = dn
prompt = no

[ OIDs ]
OrganizationID=2.5.4.97

[ dn ]
O=Enable Banking Oy
L=Espoo
C=FI
OrganizationID=PSDFI-FINFSA-29884997
CN=enablebanking.com

我运行以下命令:openssl req -new -config eidas.conf -keyout eidas.key -out eidas.csr

我收到以下错误:

problem creating object OrganizationID=2.5.4.97
140676474279104:error:08064066:object identifier routines:OBJ_create:oid exists:../crypto/objects/obj_dat.c:709:
error in req

第一台电脑:OpenSSL 1.1.1d 2019 年 9 月 10 日

操作系统:经销商ID:Kali说明:Kali GNU/Linux 滚动发布:2020.1代号:kali-rolling

第二台电脑:OpenSSL 1.1.1h 2020 年 9 月 22 日操作系统:Windows 10 Pr

但是,如果我将 Oid 声明行 2.5.4.97 更改为 1.2.3.4,则会成功

最佳答案

在较新的 openssl 版本中,OID 2.5.4.97 是为 organizationIdentifier 保留的,因此您可以将 eidas.conf 更改为以下内容,它应该可以工作。

[ req ]
distinguished_name = dn
prompt = no

[ dn ]
O=Enable Banking Oy
L=Espoo
C=FI
organizationIdentifier=PSDFI-FINFSA-29884997
CN=enablebanking.com

也不是 [ dn ] 部分中的值。显然你从 https://enablebanking.com/blog/2020/01/13/how-to-generate-eidas-certificate/ 复制了 eidas.conf此处给出的值只是作为示例,您可能希望更改它们以描述您自己的组织、位置和域(尽管对于 psd2 沙箱,任何值都可能有效)。

关于生成自签名证书时 Req 中的 OpenSSL 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65054595/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com