Skip to content

Commit

Permalink
fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianRoettges committed Jun 4, 2024
1 parent 16ed19d commit 8cadcaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crl/crlstore/asn1serializer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func TestASN1Serializer_SerializeSignatureCert(t *testing.T) {
serializedCertBytes, err := serializer.SerializeSignatureCert(exampleCert)
assert.NoError(t, err)

expectedHex := "3082019a04000400040004000400043030450220123456789abcdef0112233445566778899aabbccddeeff0102030405060708090a0b0c0d0e0f10111213141502010402010030090202303902030100010201000202303930543000301613144578616d706c65204f7267616e697a6174696f6e301d131b4578616d706c65204f7267616e697a6174696f6e616c20556e697430003000300030001300130b6578616d706c652e636f6d3000300030543000301613144578616d706c65204f7267616e697a6174696f6e301d131b4578616d706c65204f7267616e697a6174696f6e616c20556e697430003000300030001300130b6578616d706c652e636f6d30003000170d3232303130313030303030305a170d3233303130313030303030305a020105300030003000300602010102010230000101ff0101000201000101000400040030003000300030120c1074657374406578616d706c652e636f6d3024041000000000000000000000ffffc0a8010104100000000000000000000000000000000130000101003000300030003000300030003000300030003000"
expectedHex := "3082019c04000400040004000400043030450220123456789abcdef0112233445566778899aabbccddeeff0102030405060708090a0b0c0d0e0f10111213141502010402010030090202303902030100010201000202303930543000301613144578616d706c65204f7267616e697a6174696f6e301d131b4578616d706c65204f7267616e697a6174696f6e616c20556e697430003000300030001300130b6578616d706c652e636f6d3000300030543000301613144578616d706c65204f7267616e697a6174696f6e301d131b4578616d706c65204f7267616e697a6174696f6e616c20556e697430003000300030001300130b6578616d706c652e636f6d30003000170d3232303130313030303030305a170d3233303130313030303030305a020105300030003000300602010102010230000101ff0101000201000101000400040030003000300030120c1074657374406578616d706c652e636f6d3024041000000000000000000000ffffc0a80101041000000000000000000000000000000001300001010030003000300030003000300030003000300030003000"

// Convert the serialized bytes to a hex-encoded string
serializedHex := hex.EncodeToString(serializedCertBytes)
Expand Down

0 comments on commit 8cadcaa

Please sign in to comment.