As I understand it, this depends on how you represent the serial number.

If you represent it as even-number lower-case text, e.g. „789abc“, then it can 
be represented
as three bytes [0x78, 0x9a, 0xbc], otherwise, it will be encoded as normal text.

> On 18. Nov 2025, at 19:03, Robert Moskowitz 
> <[email protected]> wrote:
> 
> I have a question on encoding of the DN attribute, serialNumber.
> 
> In 3.1.4, Issuer this is covered.
> 
>    i.e., serialNumber SHALL only contain the 74-character subset of
>    ASCII allowed by printableString
> 
> If the serialNumber is an integer, is it still encoded as 
> 
> In CBOR, all text strings are UTF-8 encoded
> 
> or is it recognized as an int and encoded thusly?
> 
> Case in point:  For the 24-bit Aircraft Number (max value 16777215 or 
> xFFFFFF), how best to efficiently represent that?
> 
> as the integer number or in hex string?
> 
> Also since this would be the only subject attribute and there is already 
> subjectAltName, make this the only subject element or add it to 
> subjectAltName.
> 
> Obviously, I could experiment around, but you want me to review text-vectors!
> 
> thanks
> 
> _______________________________________________
> COSE mailing list -- [email protected]
> To unsubscribe send an email to [email protected]

_______________________________________________
COSE mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to