Subject: PKCS12-2 test inconsistency regarding Certificate Serial Number
From: Conrado Gouvea <conradoplg@kryptus.com>
To: kmip-comment@lists.oasis-open.org
Date: Mon, 19 Oct 2020 16:16:26 -0300
Dear KMIP TC,
The test PKCS12-2 looks weird.
First, it calls Locate withÂCertificateSerialNumber equal toÂ020900d2f5bad76a5ac8f9, and it's supposed to succeed.
Then, it callsÂGetAttributes which returnsÂCertificateSerialNumber equal toÂ00d2f5bad76a5ac8f9.
I understand that it's supposed to be the DER encoding of the field. But the first is the whole DER-encoded INTEGER, while the second is only the value of the ASN.1 tag.
Which one is supposed to be correct? I think this should be clarified in the next spec update.