Created
June 26, 2020 18:59
-
-
Save ahuggins-nhs/1c76f2aa55991f83b690cb187ae347e0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ahuggins@ahuggins-Virtual-Machine:~/development/libas2$ echo Something to Sign > 'test/temp-data/payload' | |
ahuggins@ahuggins-Virtual-Machine:~/development/libas2$ openssl dgst -sha256 -hex 'test/temp-data/payload' | |
SHA256(test/temp-data/payload)= 7c9088b617877e116179ad489377392ad961b5f80709d7e135ada4765d8c54cf | |
ahuggins@ahuggins-Virtual-Machine:~/development/libas2$ openssl asn1parse -inform DER -in 'test/temp-data/signature-cms.bin' 0:d=0 hl=4 l=1414 cons: SEQUENCE | |
4:d=1 hl=2 l= 9 prim: OBJECT :pkcs7-signedData | |
15:d=1 hl=4 l=1399 cons: cont [ 0 ] | |
19:d=2 hl=4 l=1395 cons: SEQUENCE | |
23:d=3 hl=2 l= 1 prim: INTEGER :01 | |
26:d=3 hl=2 l= 13 cons: SET | |
28:d=4 hl=2 l= 11 cons: SEQUENCE | |
30:d=5 hl=2 l= 9 prim: OBJECT :sha256 | |
41:d=3 hl=2 l= 11 cons: SEQUENCE | |
43:d=4 hl=2 l= 9 prim: OBJECT :pkcs7-data | |
54:d=3 hl=4 l= 783 cons: cont [ 0 ] | |
58:d=4 hl=4 l= 779 cons: SEQUENCE | |
62:d=5 hl=4 l= 499 cons: SEQUENCE | |
66:d=6 hl=2 l= 3 cons: cont [ 0 ] | |
68:d=7 hl=2 l= 1 prim: INTEGER :02 | |
71:d=6 hl=2 l= 20 prim: INTEGER :78DDF0048C40A0780EAB26C3A2C33EC4269DB77D | |
93:d=6 hl=2 l= 13 cons: SEQUENCE | |
95:d=7 hl=2 l= 9 prim: OBJECT :sha256WithRSAEncryption | |
106:d=7 hl=2 l= 0 prim: NULL | |
108:d=6 hl=2 l= 21 cons: SEQUENCE | |
110:d=7 hl=2 l= 19 cons: SET | |
112:d=8 hl=2 l= 17 cons: SEQUENCE | |
114:d=9 hl=2 l= 3 prim: OBJECT :commonName | |
119:d=9 hl=2 l= 10 prim: UTF8STRING :SampleCert | |
131:d=6 hl=2 l= 30 cons: SEQUENCE | |
133:d=7 hl=2 l= 13 prim: UTCTIME :200626184310Z | |
148:d=7 hl=2 l= 13 prim: UTCTIME :200726184310Z | |
163:d=6 hl=2 l= 21 cons: SEQUENCE | |
165:d=7 hl=2 l= 19 cons: SET | |
167:d=8 hl=2 l= 17 cons: SEQUENCE | |
169:d=9 hl=2 l= 3 prim: OBJECT :commonName | |
174:d=9 hl=2 l= 10 prim: UTF8STRING :SampleCert | |
186:d=6 hl=4 l= 290 cons: SEQUENCE | |
190:d=7 hl=2 l= 13 cons: SEQUENCE | |
192:d=8 hl=2 l= 9 prim: OBJECT :rsaEncryption | |
203:d=8 hl=2 l= 0 prim: NULL | |
205:d=7 hl=4 l= 271 prim: BIT STRING | |
480:d=6 hl=2 l= 83 cons: cont [ 3 ] | |
482:d=7 hl=2 l= 81 cons: SEQUENCE | |
484:d=8 hl=2 l= 29 cons: SEQUENCE | |
486:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Subject Key Identifier | |
491:d=9 hl=2 l= 22 prim: OCTET STRING [HEX DUMP]:04141CC01013F15CE8BFA38BC5A898932A2C07A94DE5 | |
515:d=8 hl=2 l= 31 cons: SEQUENCE | |
517:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Authority Key Identifier | |
522:d=9 hl=2 l= 24 prim: OCTET STRING [HEX DUMP]:301680141CC01013F15CE8BFA38BC5A898932A2C07A94DE5 | |
548:d=8 hl=2 l= 15 cons: SEQUENCE | |
550:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Basic Constraints | |
555:d=9 hl=2 l= 1 prim: BOOLEAN :255 | |
558:d=9 hl=2 l= 5 prim: OCTET STRING [HEX DUMP]:30030101FF | |
565:d=5 hl=2 l= 13 cons: SEQUENCE | |
567:d=6 hl=2 l= 9 prim: OBJECT :sha256WithRSAEncryption | |
578:d=6 hl=2 l= 0 prim: NULL | |
580:d=5 hl=4 l= 257 prim: BIT STRING | |
841:d=3 hl=4 l= 573 cons: SET | |
845:d=4 hl=4 l= 569 cons: SEQUENCE | |
849:d=5 hl=2 l= 1 prim: INTEGER :01 | |
852:d=5 hl=2 l= 45 cons: SEQUENCE | |
854:d=6 hl=2 l= 21 cons: SEQUENCE | |
856:d=7 hl=2 l= 19 cons: SET | |
858:d=8 hl=2 l= 17 cons: SEQUENCE | |
860:d=9 hl=2 l= 3 prim: OBJECT :commonName | |
865:d=9 hl=2 l= 10 prim: UTF8STRING :SampleCert | |
877:d=6 hl=2 l= 20 prim: INTEGER :78DDF0048C40A0780EAB26C3A2C33EC4269DB77D | |
899:d=5 hl=2 l= 11 cons: SEQUENCE | |
901:d=6 hl=2 l= 9 prim: OBJECT :sha256 | |
912:d=5 hl=3 l= 228 cons: cont [ 0 ] | |
915:d=6 hl=2 l= 24 cons: SEQUENCE | |
917:d=7 hl=2 l= 9 prim: OBJECT :contentType | |
928:d=7 hl=2 l= 11 cons: SET | |
930:d=8 hl=2 l= 9 prim: OBJECT :pkcs7-data | |
941:d=6 hl=2 l= 28 cons: SEQUENCE | |
943:d=7 hl=2 l= 9 prim: OBJECT :signingTime | |
954:d=7 hl=2 l= 15 cons: SET | |
956:d=8 hl=2 l= 13 prim: UTCTIME :200626184310Z | |
971:d=6 hl=2 l= 47 cons: SEQUENCE | |
973:d=7 hl=2 l= 9 prim: OBJECT :messageDigest | |
984:d=7 hl=2 l= 34 cons: SET | |
986:d=8 hl=2 l= 32 prim: OCTET STRING [HEX DUMP]:450DFA74EC7ACA96FC08A12681E74E3DFEA736796F8036323B0CC76AE0C43AF5 | |
1020:d=6 hl=2 l= 121 cons: SEQUENCE | |
1022:d=7 hl=2 l= 9 prim: OBJECT :S/MIME Capabilities | |
1033:d=7 hl=2 l= 108 cons: SET | |
1035:d=8 hl=2 l= 106 cons: SEQUENCE | |
1037:d=9 hl=2 l= 11 cons: SEQUENCE | |
1039:d=10 hl=2 l= 9 prim: OBJECT :aes-256-cbc | |
1050:d=9 hl=2 l= 11 cons: SEQUENCE | |
1052:d=10 hl=2 l= 9 prim: OBJECT :aes-192-cbc | |
1063:d=9 hl=2 l= 11 cons: SEQUENCE | |
1065:d=10 hl=2 l= 9 prim: OBJECT :aes-128-cbc | |
1076:d=9 hl=2 l= 10 cons: SEQUENCE | |
1078:d=10 hl=2 l= 8 prim: OBJECT :des-ede3-cbc | |
1088:d=9 hl=2 l= 14 cons: SEQUENCE | |
1090:d=10 hl=2 l= 8 prim: OBJECT :rc2-cbc | |
1100:d=10 hl=2 l= 2 prim: INTEGER :80 | |
1104:d=9 hl=2 l= 13 cons: SEQUENCE | |
1106:d=10 hl=2 l= 8 prim: OBJECT :rc2-cbc | |
1116:d=10 hl=2 l= 1 prim: INTEGER :40 | |
1119:d=9 hl=2 l= 7 cons: SEQUENCE | |
1121:d=10 hl=2 l= 5 prim: OBJECT :des-cbc | |
1128:d=9 hl=2 l= 13 cons: SEQUENCE | |
1130:d=10 hl=2 l= 8 prim: OBJECT :rc2-cbc | |
1140:d=10 hl=2 l= 1 prim: INTEGER :28 | |
1143:d=5 hl=2 l= 13 cons: SEQUENCE | |
1145:d=6 hl=2 l= 9 prim: OBJECT :rsaEncryption | |
1156:d=6 hl=2 l= 0 prim: NULL | |
1158:d=5 hl=4 l= 256 prim: OCTET STRING [HEX DUMP]:A4E46C51BA8A472993DAE1BCC158CE6C9694F1307480D61164CC100CB6BD9445FF0D229BA893C1F9832F595FF5B14896EE93D50E489EFFA6B3C0933EFACAF0C0A9D135CDBE61EC6246C74C052CFE83918BF019793B01F09BF7A07FBFEF0BEE4BF84145BE449E408572734BBC72DF7B9D5CDD08D5314D838EA57D18AC32218CEE3A8DDE495044F40BEB0B01814ACC7A40ACD2509EDD63B7EFB9E46F5A75B278159EA0F1BEA454BD104A7A5AF95759EA782959F61E6A7C8F0E0A5D5ABA52E1EDE6D1382912AF83A40916E6B44ED55380604FCB48E60512BE632A7C8E7F6467145F0521778816D97B65FBD7C364E1F3C19F7E731CDFBEC19DD51ADD034AB24ACAFB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment