]> git.ipfire.org Git - thirdparty/strongswan.git/commit
pki: Make --dn optional for certificate renewals via --scep command
authorTobias Brunner <tobias@strongswan.org>
Thu, 11 May 2023 10:29:10 +0000 (12:29 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 17 May 2023 13:56:12 +0000 (15:56 +0200)
commit5f8eb09dd665a242fbebd55e47a0080c2f983704
tree521dd5d3d1580fd7f9d01727c1386fadf4de6036
parent7fa85ff379da8ffe5264c109723dd20f5f579821
pki: Make --dn optional for certificate renewals via --scep command

When using OpenXPKI, the subject DN in the renewal request has to match
the previous DN exactly.  However, because OpenXPKI may add a bunch of
DC/O RDNs to subjects of issued certificates, running --scep with the
same --dn that was used for the original request won't work (results in
a "Client error / malformed request badRequest" error even after enabling
`renewal_via_pkcs_req`).  This simplifies renewals as --dn can just be
omitted and extracted from the original certificate to avoid this issue.

References strongswan/strongswan#1689
src/pki/commands/scep.c
src/pki/man/pki---scep.1.in