mpeylo / cmpossl

An OpenSSL-based implementation of the Certificate Management Protocol (CMP), defined in IETF RFCs 4210, 4211, and 6712. It is being extended according to the emerging RFCs 'CMP Updates' (CMPv3), 'CMP Algorithms', and 'Lightweight CMP Profile'.
https://github.com/mpeylo/cmpossl/wiki
Other
35 stars 13 forks source link

CMP Server sending error with version as cmp1999 #220

Closed bairathivivek closed 3 years ago

bairathivivek commented 3 years ago

Hi David,

We are sending an ir using cmpossl (CMPv2 client) to CMP server. But getting an error reply from server with following error message:

"Received a request invalid message protection: Request signer certificate failed to chain up to a registered vendor trust anchor: INVALIDCERT"

So, I am guessing the vendor trust CA is not installed on CMP server and hence the error. Is the guess correct?

But in logs the error shown by cmpossl (CMPv2 client) is: 140516300289856:error:390AC0C1:CMP routines:OSSL_CMP_MSG_check_received:unexpected pvno:crypto/cmp/cmp_lib.c:1563:

So, I checked the cmp error reply packet and saw that server is replying with "pvno: cmp1999 (1)".

Does it mean that server doesn't support CMPv2?

Does cmpossl (CMPv2 client) support CMP version 1? If yes, how to enable/use it?

Please let me know your comments.

Eagerly waiting for your reply.

Thanks & Regards, Vivek

DDvO commented 3 years ago

Hi Vivek,

sorry that I forgot to your response earlier! Yeah, it looks like there are two issues:

Hope this helps?

Regards, David

bairathivivek commented 3 years ago

Thans david for the reply, yes after the problem is resolved the server did send the CMP messages with version 2 (2000).