Have you tried cbor.me?

Do you mean display in text like:

[1, h'1745', "2001003ffe3ff805aa16ed2392f6f0cbI", 1725840060, 1751414340,
[], 10,
h'26FD3A734B3366FFE4AB68DBD2230812FD0B197090BA1EAA7EB34FFA38FFB78F', [-3,
[7, h'2001003FFE3FF805AA28CD1AE2A3DAE3']], 12,
h'C839BEEB65370B7E815BCA24585288E7EB8ACD2A490B5E80640BA4822AE905BC4734B8AE267738913E7CB729C8192A754887E4115178FCD878A2C19F91670109']

Or do you mean more expanded like:

8B                                      # array(11)
   01                                   # unsigned(1)
   42                                   # bytes(2)
      1745                              # "\u0017E"
   78 21                                # text(33)
      323030313030336666653366663830356161313665643233393266366630636249 #
"2001003ffe3ff805aa16ed2392f6f0cbI"
   1A 66DE3ABC                          # unsigned(1725840060)
   1A 68647644                          # unsigned(1751414340)
   80                                   # array(0)
   0A                                   # unsigned(10)
   58 20                                # bytes(32)
      26FD3A734B3366FFE4AB68DBD2230812FD0B197090BA1EAA7EB34FFA38FFB78F #
"&\xFD:sK3f\xFF\xE4\xABh\xDB\xD2#\b\u0012\xFD\v\u0019p\x90\xBA\u001E\xAA~\xB3O\xFA8\xFF\xB7\x8F"
   82                                   # array(2)
      22                                # negative(2)
      82                                # array(2)
         07                             # unsigned(7)
         50                             # bytes(16)
            2001003FFE3FF805AA28CD1AE2A3DAE3 # "
\u0001\u0000?\xFE?\xF8\u0005\xAA(\xCD\u001A\xE2\xA3\xDA\xE3"
   0C                                   # unsigned(12)
   58 40                                # bytes(64)
      
C839BEEB65370B7E815BCA24585288E7EB8ACD2A490B5E80640BA4822AE905BC4734B8AE267738913E7CB729C8192A754887E4115178FCD878A2C19F91670109
#
"\xC89\xBE\xEBe7\v~\x81[\xCA$XR\x88\xE7\xEB\x8A\xCD*I\v^\x80d\v\xA4\x82*\xE9\u0005\xBCG4\xB8\xAE&w8\x91>|\xB7)\xC8\u0019*uH\x87\xE4\u0011Qx\xFC\xD8x\xA2\xC1\x9F\x91g\u0001\t"

-derek

On Wed, September 11, 2024 9:47 am, Robert Moskowitz wrote:
> My Bad, I was using PEM when I was told to use DER....
>
> COSE_X509 (174 bytes)
> 8B 01 42 17 45 78 21 32 30 30 31 30 30 33 66 66 65 33 66 66 38 30 35
> 61 61 31 36 65 64 32 33 39 32 66 36 66 30 63 62 49 1A 66 DE 3A BC 1A
> 68 64 76 44 80 0A 58 20 26 FD 3A 73 4B 33 66 FF E4 AB 68 DB D2 23 08
> 12 FD 0B 19 70 90 BA 1E AA 7E B3 4F FA 38 FF B7 8F 82 22 82 07 50 20
> 01 00 3F FE 3F F8 05 AA 28 CD 1A E2 A3 DA E3 0C 58 40 C8 39 BE EB 65
> 37 0B 7E 81 5B CA 24 58 52 88 E7 EB 8A CD 2A 49 0B 5E 80 64 0B A4 82
> 2A E9 05 BC 47 34 B8 AE 26 77 38 91 3E 7C B7 29 C8 19 2A 75 48 87 E4
> 11 51 78 FC D8 78 A2 C1 9F 91 67 01 09
>
> Nice reduction, ~68%.   But how do I display that as text?
>
> On 9/9/24 09:03, Robert Moskowitz wrote:
>> Still having challenges with the c509 code.
>>
>> Can someone convert this?  I  need to see what it comes out as in c509
>> and get object size (DER is 256 bytes)
>>
>> Thanks
>>
>> -----BEGIN CERTIFICATE-----
>> MIH9MIGwoAMCAQICAghxMAUGAytlcDAsMSowKAYDVQQDDCEyMDAxMDAzMDAwMDAw
>> MDA1MGVkYThhNjQ0MDkzYWFkZEkwHhcNMjQwOTAyMTY1NDM5WhcNMjQxMDAzMTY1
>> NDM5WjAAMCowBQYDK2VwAyEAKizr+94BfDjE/Xb1yGotBzs8qE9JFpMM4rjzm52/
>> j22jIjAgMB4GA1UdEQEB/wQUMBKHECABAD/+P/gFcCAiN/ucXUwwBQYDK2VwA0EA
>> FRUk+4nVBZ4aQGM+Z+OcMm1htt9dwUhBk9m1L1TZSJ2H34fKvkTtnRTg5VWhldpB
>> pEQmR24en/FyD0pOVnGnCg==
>> -----END CERTIFICATE-----
>>
>> _______________________________________________
>> 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]
>


-- 
       Derek Atkins                 617-623-3745
       [email protected]             www.ihtfp.com
       Computer and Internet Security Consultant

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

Reply via email to