sample_revocations.txt (1732B)
1 # a sample revocations.txt for tests 2 # Lines starting with '#' are ignored - as are empty lines like this: 3 4 # otherwise: 5 # non-empty lines are treated as base-64 encoded DER DN data (e.g. issuer or 6 # subject) 7 # ...unless the line starts with a ' ' (space) character, in which case it's 8 # assumed to be base-64 encoded DER serial data, or 9 # the line starts with a '\t' (tab) character, in which case it's assumed to 10 # be a base-64 encoded SHA256 hash of a public key 11 12 # First a serial with no issuer to ensure this doesn't cause parsing to fail 13 # (there should be an issuer first, but we need to test this won't fail) 14 dGVzdA== 15 # next, let's ensure data that isn't valid base64 doesn't cause breakage. 16 this serial isn't valid base64 (but then there's no issuer anyway) 17 Neither is this issuer, though the serial is fine 18 dGVzdA== 19 dGVzdA== 20 in this case, issuer is fine but not the serial 21 # Next two entries; we can add valid base-64 encoded data for some basic tests: 22 # issuer is the base-64 encoded subject DN for the shared Test CA 23 # serial is the base-64 encoded integer 42 24 MBIxEDAOBgNVBAMMB1Rlc3QgQ0E= 25 Kg== 26 # issuer is the base-64 encoded subject DN for the shared Test Intermediate 27 # the first serial is the base-64 encoded integer 78 28 # the second serial is the base-64 encoded integer 31 29 MBwxGjAYBgNVBAMMEVRlc3QgSW50ZXJtZWRpYXRl 30 Tg== 31 Hw== 32 c2VyaWFsMi4= 33 # subject is base-64 encoded subject DN "CN=EE Revoked By Subject and PubKey" 34 # pubKeyHash is the base-64 encoded sha256 hash of the shared RSA SPKI 35 MCsxKTAnBgNVBAMMIEVFIFJldm9rZWQgQnkgU3ViamVjdCBhbmQgUHViS2V5 36 VCIlmPM9NkgFQtrs4Oa5TeFcDu6MWRTKSNdePEhOgD8= 37 # and some more data to ensure that mixed items don't cause parsing failure 38 a DN 39 a serial 40 a hash 41 another serial