我创建了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
第一台PC: OpenSSL 1.1.1d 2019年9月10日
操作系统:分销商ID: Kali描述: Kali GNU/Linux Rolling版本: 2020.1代号: kali-rolling
第二台PC: OpenSSL 1.1.1h 22,2020年9月操作系统: Windows 10 Pr
但是,如果我将Oid声明行2.5.4.97更改为1.2.3.4,则会成功
发布于 2020-11-29 06:08:35
在较新的openssl版本中,OID2.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沙箱,任何值都可能有效)。
https://stackoverflow.com/questions/65054595
复制相似问题