Re: why publickey sequence use DLSequence in CMP cr-CertTemplate entity ?

Matti Aarnio <[email protected]> Wed, 22 May 2019 20:16:55 +0300
Newsgroups gmane.comp.encryption.bouncy-castle.devel
Message-ID <[email protected]>
Hi Gsealy,

That depends on the SubjectPublicKeyInfo object you give to the /CertificateRequestMessageBuilder.setPublicKey(spki)/ method.
How did you create it?

BR, Matti


On 5/22/19 3:44 PM, J Gsealy wrote:
> Hi team,
>
> I know CMP use DER encode and post by "application/pkixcmp" Content-Type.
>
> I use BC CertificateRequestMessageBuilder class to create a cr(CertReqMessages) request, I found PublicKey entity is package by a DLSequence object
>
> (use sm2), not Vector or DERSEquence (see attachment base64 text in "ECsm2req.txt")
>
>
>
> But my simple request text was use DERSequence(use RSA) (see attachment base64 text in "RSAreq.txt")
>
>
>
> use DLSequence is right? and what's different with others encode type(BER/DER)?
>
> Thanks,
> Gsealy