我正在使用数字移动签名(PKCS#7)签署PDF。由于我不是Openssl和Signatures类型的专家,因此我遇到了一些问题。也许我没有得到逻辑。
我使用Setasign PDF库来准备PDF文档,计算字节范围和SHA256。由于它的付费和知名图书馆,我想这些步骤没有问题。
然后我将计算的哈希发送到我的移动运营商的服务,移动用户在他的手机上批准这个签名过程,并且运营商的网络服务返回PKCS#7格式的签名。
最后一步PDF库将此签名放入准备好的PDF中。 Everythings看起来很好,直到这里。但是,当我打开已签名的PDf时,它说“文档自签名后已被更改或损坏”
所以我开始查找这个问题的原因,我发现了一些我不理解的东西。
我知道其他公司也使用相同的移动运营商服务签署文件,这些PDF完全没问题(我认为他们正在使用iTextsharp库)。无论如何,我从其中一个文件中获得了签名,并将此符号作为二进制数据保存到文件中,然后在此文件上运行此命令
openssl asn1parse -inform der -in signature.p7b
这个命令给了我这个结果:
0:d=0 hl=2 l=inf cons: SEQUENCE
2:d=1 hl=2 l= 9 prim: OBJECT :pkcs7-signedData
13:d=1 hl=2 l=inf cons: cont [ 0 ]
15:d=2 hl=2 l=inf cons: SEQUENCE
17:d=3 hl=2 l= 1 prim: INTEGER :01
20:d=3 hl=2 l= 13 cons: SET
22:d=4 hl=2 l= 11 cons: SEQUENCE
24:d=5 hl=2 l= 9 prim: OBJECT :sha256
35:d=3 hl=2 l=inf cons: SEQUENCE
37:d=4 hl=2 l= 9 prim: OBJECT :pkcs7-data
48:d=4 hl=2 l= 0 prim: EOC
50:d=3 hl=4 l=1788 cons: cont [ 0 ]
54:d=4 hl=4 l=1784 cons: SEQUENCE
58:d=5 hl=4 l=1504 cons: SEQUENCE
62:d=6 hl=2 l= 3 cons: cont [ 0 ]
64:d=7 hl=2 l= 1 prim: INTEGER :02
67:d=6 hl=2 l= 17 prim: INTEGER :B99634F7172927B1B51262580A11B4FE
86:d=6 hl=2 l= 13 cons: SEQUENCE
88:d=7 hl=2 l= 9 prim: OBJECT :sha256WithRSAEncryption
99:d=7 hl=2 l= 0 prim: NULL
101:d=6 hl=2 l= 106 cons: SEQUENCE
103:d=7 hl=2 l= 11 cons: SET
105:d=8 hl=2 l= 9 cons: SEQUENCE
107:d=9 hl=2 l= 3 prim: OBJECT :countryName
112:d=9 hl=2 l= 2 prim: PRINTABLESTRING :TR
116:d=7 hl=2 l= 40 cons: SET
118:d=8 hl=2 l= 38 cons: SEQUENCE
120:d=9 hl=2 l= 3 prim: OBJECT :organizationName
125:d=9 hl=2 l= 31 prim: UTF8STRING :Elektronik A.S.
158:d=7 hl=2 l= 49 cons: SET
160:d=8 hl=2 l= 47 cons: SEQUENCE
162:d=9 hl=2 l= 3 prim: OBJECT :commonName
167:d=9 hl=2 l= 40 prim: UTF8STRING :Mobil S2
209:d=6 hl=2 l= 30 cons: SEQUENCE
211:d=7 hl=2 l= 13 prim: UTCTIME :151125084946Z
226:d=7 hl=2 l= 13 prim: UTCTIME :161124084946Z
241:d=6 hl=2 l= 87 cons: SEQUENCE
243:d=7 hl=2 l= 11 cons: SET
245:d=8 hl=2 l= 9 cons: SEQUENCE
247:d=9 hl=2 l= 3 prim: OBJECT :countryName
252:d=9 hl=2 l= 2 prim: PRINTABLESTRING :TR
256:d=7 hl=2 l= 27 cons: SET
258:d=8 hl=2 l= 25 cons: SEQUENCE
260:d=9 hl=2 l= 3 prim: OBJECT :organizationalUnitName
265:d=9 hl=2 l= 18 prim: PRINTABLESTRING :popCode - 33854
285:d=7 hl=2 l= 20 cons: SET
287:d=8 hl=2 l= 18 cons: SEQUENCE
289:d=9 hl=2 l= 3 prim: OBJECT :serialNumber
294:d=9 hl=2 l= 11 prim: PRINTABLESTRING :2594884
307:d=7 hl=2 l= 21 cons: SET
309:d=8 hl=2 l= 19 cons: SEQUENCE
311:d=9 hl=2 l= 3 prim: OBJECT :commonName
316:d=9 hl=2 l= 12 prim: UTF8STRING :JORJ MARDUK
330:d=6 hl=4 l= 290 cons: SEQUENCE
334:d=7 hl=2 l= 13 cons: SEQUENCE
336:d=8 hl=2 l= 9 prim: OBJECT :rsaEncryption
347:d=8 hl=2 l= 0 prim: NULL
349:d=7 hl=4 l= 271 prim: BIT STRING
624:d=6 hl=4 l= 938 cons: cont [ 3 ]
628:d=7 hl=4 l= 934 cons: SEQUENCE
632:d=8 hl=3 l= 138 cons: SEQUENCE
635:d=9 hl=2 l= 8 prim: OBJECT :Authority Information Access
645:d=9 hl=2 l= 126 prim: OCTET STRING [HEX DUMP]:307C302E06082B060105050730018622687474703A2F2F6F637370322E652D677576656E2E636F6D2F6F6373702E78756461304A06082B06010505073002863E687474703A2F2F7777772E652D677576656E2E636F6D2F646F63756D656E74732F5475726B63656C6C4D6F62696C496D7A61416C744B6F6B53322E637274
773:d=8 hl=2 l= 31 cons: SEQUENCE
775:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Authority Key Identifier
780:d=9 hl=2 l= 24 prim: OCTET STRING [HEX DUMP]:3016801408B053A6CF4F46DB1D608B086DE5CD47E0606C0E
806:d=8 hl=4 l= 370 cons: SEQUENCE
810:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Certificate Policies
815:d=9 hl=4 l= 361 prim: OCTET STRING [HEX DUMP]:308201653081B106066086180300013081A6303606082B06010505070201162A687474703A2F2F7777772E652D677576656E2E636F6D2F646F63756D656E74732F4E455355452E706466306C06082B0601050507020230601A5E427520736572746966696B612C203530373020736179C4B16CC4B120456C656B74726F6E696B20C4B06D7A61204B616E756E756E612067C3B67265206E6974656C696B6C6920656C656B74726F6E696B20736572746966696B6164C4B1723081AE06096086180300010101033081A0303706082B06010505070201162B687474703A2F2F7777772E652D677576656E2E636F6D2F646F63756D656E74732F4D4B4E4553492E706466306506082B0601050507020230591A57427520736572746966696B612C204D4B4E455349206B617073616DC4B16E646120796179C4B16E6C616E6DC4B1C59F20626972206E6974656C696B6C6920656C656B74726F6E696B20736572746966696B6164C4B1722E
1180:d=8 hl=2 l= 88 cons: SEQUENCE
1182:d=9 hl=2 l= 3 prim: OBJECT :X509v3 CRL Distribution Points
1187:d=9 hl=2 l= 81 prim: OCTET STRING [HEX DUMP]:304F304DA04BA0498647687474703A2F2F73696C2E652D677576656E2E636F6D2F456C656B74726F6E696B42696C6769477576656E6C69676941534D4B4E45534953322F4C617465737443524C2E63726C
1270:d=8 hl=2 l= 14 cons: SEQUENCE
1272:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Key Usage
1277:d=9 hl=2 l= 1 prim: BOOLEAN :255
1280:d=9 hl=2 l= 4 prim: OCTET STRING [HEX DUMP]:030206C0
1286:d=8 hl=3 l= 131 cons: SEQUENCE
1289:d=9 hl=2 l= 8 prim: OBJECT :qcStatements
1299:d=9 hl=2 l= 119 prim: OCTET STRING [HEX DUMP]:30753008060604008E4601013069060B608618013D0001A74E01010C5A427520736572746966696B612C203530373020736179696C6920456C656B74726F6E696B20496D7A61204B616E756E756E612067C3B67265206E6974656C696B6C6920656C656B74726F6E696B20736572746966696B61646972
1420:d=8 hl=2 l= 79 cons: SEQUENCE
1422:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Subject Directory Attributes
1427:d=9 hl=2 l= 72 prim: OCTET STRING [HEX DUMP]:3046301D06082B060105050709013111180F30303138313233313232303030305A301006082B06010505070904310404025452301306082B060105050709023107040542C4B04741
1501:d=8 hl=2 l= 32 cons: SEQUENCE
1503:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Subject Alternative Name
1508:d=9 hl=2 l= 25 prim: OCTET STRING [HEX DUMP]:301781156E6968616E2E6963696B40746B642E636F6D2E7472
1535:d=8 hl=2 l= 29 cons: SEQUENCE
1537:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Subject Key Identifier
1542:d=9 hl=2 l= 22 prim: OCTET STRING [HEX DUMP]:04149E69B3ABDAC2AC1C74156FCEEE68FF75A704B432
1566:d=5 hl=2 l= 13 cons: SEQUENCE
1568:d=6 hl=2 l= 9 prim: OBJECT :sha256WithRSAEncryption
1579:d=6 hl=2 l= 0 prim: NULL
1581:d=5 hl=4 l= 257 prim: BIT STRING
1842:d=3 hl=4 l= 729 cons: SET
1846:d=4 hl=4 l= 725 cons: SEQUENCE
1850:d=5 hl=2 l= 1 prim: INTEGER :01
1853:d=5 hl=2 l= 127 cons: SEQUENCE
1855:d=6 hl=2 l= 106 cons: SEQUENCE
1857:d=7 hl=2 l= 11 cons: SET
1859:d=8 hl=2 l= 9 cons: SEQUENCE
1861:d=9 hl=2 l= 3 prim: OBJECT :countryName
1866:d=9 hl=2 l= 2 prim: PRINTABLESTRING :TR
1870:d=7 hl=2 l= 40 cons: SET
1872:d=8 hl=2 l= 38 cons: SEQUENCE
1874:d=9 hl=2 l= 3 prim: OBJECT :organizationName
1879:d=9 hl=2 l= 31 prim: UTF8STRING :Elektronik A.S.
1912:d=7 hl=2 l= 49 cons: SET
1914:d=8 hl=2 l= 47 cons: SEQUENCE
1916:d=9 hl=2 l= 3 prim: OBJECT :commonName
1921:d=9 hl=2 l= 40 prim: UTF8STRING :Mobil S2
1963:d=6 hl=2 l= 17 prim: INTEGER :B99634F7172927B1B51262580A11B4FE
1982:d=5 hl=2 l= 11 cons: SEQUENCE
1984:d=6 hl=2 l= 9 prim: OBJECT :sha256
1995:d=5 hl=4 l= 301 cons: cont [ 0 ]
1999:d=6 hl=2 l= 24 cons: SEQUENCE
2001:d=7 hl=2 l= 9 prim: OBJECT :contentType
2012:d=7 hl=2 l= 11 cons: SET
2014:d=8 hl=2 l= 9 prim: OBJECT :pkcs7-data
2025:d=6 hl=2 l= 28 cons: SEQUENCE
2027:d=7 hl=2 l= 9 prim: OBJECT :signingTime
2038:d=7 hl=2 l= 15 cons: SET
2040:d=8 hl=2 l= 13 prim: UTCTIME :160815091237Z
2055:d=6 hl=2 l= 47 cons: SEQUENCE
2057:d=7 hl=2 l= 9 prim: OBJECT :messageDigest
2068:d=7 hl=2 l= 34 cons: SET
2070:d=8 hl=2 l= 32 prim: OCTET STRING [HEX DUMP]:16D96A5B9033B7A73A3510CC429DDA315C6308AE7233A7F054118E764FF85885
2104:d=6 hl=3 l= 193 cons: SEQUENCE
2107:d=7 hl=2 l= 11 prim: OBJECT :1.2.840.113549.1.9.16.2.47
2120:d=7 hl=3 l= 177 cons: SET
2123:d=8 hl=3 l= 174 cons: SEQUENCE
2126:d=9 hl=3 l= 171 cons: SEQUENCE
2129:d=10 hl=3 l= 168 cons: SEQUENCE
2132:d=11 hl=2 l= 32 prim: OCTET STRING [HEX DUMP]:7D3D2FEB1DD1F60316A7601C2AAE81F9EA9992948810AF5FC089825287BB1517
2166:d=11 hl=3 l= 131 cons: SEQUENCE
2169:d=12 hl=2 l= 110 cons: SEQUENCE
2171:d=13 hl=2 l= 108 cons: cont [ 4 ]
2173:d=14 hl=2 l= 106 cons: SEQUENCE
2175:d=15 hl=2 l= 11 cons: SET
2177:d=16 hl=2 l= 9 cons: SEQUENCE
2179:d=17 hl=2 l= 3 prim: OBJECT :countryName
2184:d=17 hl=2 l= 2 prim: PRINTABLESTRING :TR
2188:d=15 hl=2 l= 40 cons: SET
2190:d=16 hl=2 l= 38 cons: SEQUENCE
2192:d=17 hl=2 l= 3 prim: OBJECT :organizationName
2197:d=17 hl=2 l= 31 prim: UTF8STRING :Elektronik A.S.
2230:d=15 hl=2 l= 49 cons: SET
2232:d=16 hl=2 l= 47 cons: SEQUENCE
2234:d=17 hl=2 l= 3 prim: OBJECT :commonName
2239:d=17 hl=2 l= 40 prim: UTF8STRING :Mobil S2
2281:d=12 hl=2 l= 17 prim: INTEGER :B99634F7172927B1B51262580A11B4FE
2300:d=5 hl=2 l= 13 cons: SEQUENCE
2302:d=6 hl=2 l= 9 prim: OBJECT :sha256WithRSAEncryption
2313:d=6 hl=2 l= 0 prim: NULL
2315:d=5 hl=4 l= 256 prim: OCTET STRING [HEX DUMP]:388E968648889ECC29FC394A958365E0C0B14CC8861CF73198B0330002EE7B97DA06E7548EBB52286F5ADE5E40394444786E695FC6BB288CDCF71CFBBCA002C6C84E84608DAC057C8FE05C0465074D6BA4EAC941A069AB62ED1747656BBD8FCE412D20462B7068E07692169558853AAB10594D91A616AB28708C2ECF08C6EE48989D10B48B300E35223259BE6B4B3612BDC6BD40C3707B138E2DD645D7922693AC18566FFBEBE5E970B77321C11C19B029BB8F12471D7B613BF49E530641E0B1F3C02D92D1288AAB0D4AF691F302083D5FE0749CC4858F6A4AB33B0DABC8AAD97AF79C12DD6EE03FC5AF4083F9C453C4994D018468738FD60DF50074394D11E2
2575:d=3 hl=2 l= 0 prim: ENUMERATED :00
然后我保存了同一个移动运营商的签名,让我回复:
0:d=0 hl=4 l=2413 cons: SEQUENCE
4:d=1 hl=2 l= 9 prim: OBJECT :pkcs7-signedData
15:d=1 hl=4 l=2398 cons: cont [ 0 ]
19:d=2 hl=4 l=2394 cons: SEQUENCE
23:d=3 hl=2 l= 1 prim: INTEGER :01
26:d=3 hl=2 l= 11 cons: SET
28:d=4 hl=2 l= 9 cons: SEQUENCE
30:d=5 hl=2 l= 5 prim: OBJECT :sha1
37:d=5 hl=2 l= 0 prim: NULL
39:d=3 hl=2 l= 59 cons: SEQUENCE
41:d=4 hl=2 l= 9 prim: OBJECT :pkcs7-data
52:d=4 hl=2 l= 46 cons: cont [ 0 ]
54:d=5 hl=2 l= 44 prim: OCTET STRING :hPUsrH5h12umBN5a6SktIkfKwI0dOBNids5LY84CWxU=
100:d=3 hl=4 l=1793 cons: cont [ 0 ]
104:d=4 hl=4 l=1789 cons: SEQUENCE
108:d=5 hl=4 l=1509 cons: SEQUENCE
112:d=6 hl=2 l= 3 cons: cont [ 0 ]
114:d=7 hl=2 l= 1 prim: INTEGER :02
117:d=6 hl=2 l= 16 prim: INTEGER :64022A0CF088F79AF0024C139729BA23
135:d=6 hl=2 l= 13 cons: SEQUENCE
137:d=7 hl=2 l= 9 prim: OBJECT :sha256WithRSAEncryption
148:d=7 hl=2 l= 0 prim: NULL
150:d=6 hl=2 l= 106 cons: SEQUENCE
152:d=7 hl=2 l= 11 cons: SET
154:d=8 hl=2 l= 9 cons: SEQUENCE
156:d=9 hl=2 l= 3 prim: OBJECT :countryName
161:d=9 hl=2 l= 2 prim: PRINTABLESTRING :TR
165:d=7 hl=2 l= 40 cons: SET
167:d=8 hl=2 l= 38 cons: SEQUENCE
169:d=9 hl=2 l= 3 prim: OBJECT :organizationName
174:d=9 hl=2 l= 31 prim: UTF8STRING :Elektronik A.S.
207:d=7 hl=2 l= 49 cons: SET
209:d=8 hl=2 l= 47 cons: SEQUENCE
211:d=9 hl=2 l= 3 prim: OBJECT :commonName
216:d=9 hl=2 l= 40 prim: UTF8STRING :Mobil S2
258:d=6 hl=2 l= 30 cons: SEQUENCE
260:d=7 hl=2 l= 13 prim: UTCTIME :151012133852Z
275:d=7 hl=2 l= 13 prim: UTCTIME :161011133852Z
290:d=6 hl=2 l= 86 cons: SEQUENCE
292:d=7 hl=2 l= 11 cons: SET
294:d=8 hl=2 l= 9 cons: SEQUENCE
296:d=9 hl=2 l= 3 prim: OBJECT :countryName
301:d=9 hl=2 l= 2 prim: PRINTABLESTRING :TR
305:d=7 hl=2 l= 27 cons: SET
307:d=8 hl=2 l= 25 cons: SEQUENCE
309:d=9 hl=2 l= 3 prim: OBJECT :organizationalUnitName
314:d=9 hl=2 l= 18 prim: PRINTABLESTRING :popCode - 16557
334:d=7 hl=2 l= 20 cons: SET
336:d=8 hl=2 l= 18 cons: SEQUENCE
338:d=9 hl=2 l= 3 prim: OBJECT :serialNumber
343:d=9 hl=2 l= 11 prim: PRINTABLESTRING :52059220
356:d=7 hl=2 l= 20 cons: SET
358:d=8 hl=2 l= 18 cons: SEQUENCE
360:d=9 hl=2 l= 3 prim: OBJECT :commonName
365:d=9 hl=2 l= 11 prim: UTF8STRING :NATE MARDUK
378:d=6 hl=4 l= 290 cons: SEQUENCE
382:d=7 hl=2 l= 13 cons: SEQUENCE
384:d=8 hl=2 l= 9 prim: OBJECT :rsaEncryption
395:d=8 hl=2 l= 0 prim: NULL
397:d=7 hl=4 l= 271 prim: BIT STRING
672:d=6 hl=4 l= 945 cons: cont [ 3 ]
676:d=7 hl=4 l= 941 cons: SEQUENCE
680:d=8 hl=3 l= 138 cons: SEQUENCE
683:d=9 hl=2 l= 8 prim: OBJECT :Authority Information Access
693:d=9 hl=2 l= 126 prim: OCTET STRING [HEX DUMP]:307C302E06082B060105050730018622687474703A2F2F6F637370322E6687474703A2F2F7777772E652D677576656E2E636F6D2F646F63756D656E74732F5475726B63656C6C4D6F62696C496D7A61416C744B6F6B53322
821:d=8 hl=2 l= 31 cons: SEQUENCE
823:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Authority Key Identifier
828:d=9 hl=2 l= 24 prim: OCTET STRING [HEX DUMP]:3016801408B053A6CF4F46DB1D608B086DE5CD47E0606C0E
854:d=8 hl=4 l= 370 cons: SEQUENCE
858:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Certificate Policies
863:d=9 hl=4 l= 361 prim: OCTET STRING [HEX DUMP]:308201653081B106066086180300013081A6303606082B06010505070202F4E455355452E706466306C06082B0601050507020230601A5E427520736572746966696B612C203530373020736179C4B16CC4B120456C656B76C6920656C656B74726F6E696B20736572746966696B6164C4B1723081AE06096086180300010101033081A0303706082B06010505070201162B64E4553492E706466306506082B0601050507020230591A57427520736572746966696B612C204D4B4E455349206B617073616DC4B16E6461207966E696B20736572746966696B6164C4B1722E
1228:d=8 hl=2 l= 88 cons: SEQUENCE
1230:d=9 hl=2 l= 3 prim: OBJECT :X509v3 CRL Distribution Points
1235:d=9 hl=2 l= 81 prim: OCTET STRING [HEX DUMP]:304F304DA04BA0498647687474703A2F2F73696C2E652D677576656E2E64953322F4C617465737443524C2E63726C
1318:d=8 hl=2 l= 14 cons: SEQUENCE
1320:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Key Usage
1325:d=9 hl=2 l= 1 prim: BOOLEAN :255
1328:d=9 hl=2 l= 4 prim: OCTET STRING [HEX DUMP]:030206C0
1334:d=8 hl=3 l= 131 cons: SEQUENCE
1337:d=9 hl=2 l= 8 prim: OBJECT :qcStatements
1347:d=9 hl=2 l= 119 prim: OCTET STRING [HEX DUMP]:30753008060604008E4601013069060B608618013D0001A74E01010C5A46B20496D7A61204B616E756E756E612067C3B67265206E6974656C696B6C6920656C656B74726F6E696B20736572746966696B61646972
1468:d=8 hl=2 l= 79 cons: SEQUENCE
1470:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Subject Directory Attributes
1475:d=9 hl=2 l= 72 prim: OCTET STRING [HEX DUMP]:3046301D06082B060105050709013111180F30303034313233313232303070405544F4B4154
1549:d=8 hl=2 l= 39 cons: SEQUENCE
1551:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Subject Alternative Name
1556:d=9 hl=2 l= 32 prim: OCTET STRING [HEX DUMP]:301E811C6D6572742E697A6369406B6579696E7465726E65742E636F6D2
1590:d=8 hl=2 l= 29 cons: SEQUENCE
1592:d=9 hl=2 l= 3 prim: OBJECT :X509v3 Subject Key Identifier
1597:d=9 hl=2 l= 22 prim: OCTET STRING [HEX DUMP]:0414E2096E3737DC612801B12C31E89903685EB6E423
1621:d=5 hl=2 l= 13 cons: SEQUENCE
1623:d=6 hl=2 l= 9 prim: OBJECT :sha256WithRSAEncryption
1634:d=6 hl=2 l= 0 prim: NULL
1636:d=5 hl=4 l= 257 prim: BIT STRING
1897:d=3 hl=4 l= 516 cons: SET
1901:d=4 hl=4 l= 512 cons: SEQUENCE
1905:d=5 hl=2 l= 1 prim: INTEGER :01
1908:d=5 hl=2 l= 126 cons: SEQUENCE
1910:d=6 hl=2 l= 106 cons: SEQUENCE
1912:d=7 hl=2 l= 11 cons: SET
1914:d=8 hl=2 l= 9 cons: SEQUENCE
1916:d=9 hl=2 l= 3 prim: OBJECT :countryName
1921:d=9 hl=2 l= 2 prim: PRINTABLESTRING :TR
1925:d=7 hl=2 l= 40 cons: SET
1927:d=8 hl=2 l= 38 cons: SEQUENCE
1929:d=9 hl=2 l= 3 prim: OBJECT :organizationName
1934:d=9 hl=2 l= 31 prim: UTF8STRING :Elektronik A.S.
1967:d=7 hl=2 l= 49 cons: SET
1969:d=8 hl=2 l= 47 cons: SEQUENCE
1971:d=9 hl=2 l= 3 prim: OBJECT :commonName
1976:d=9 hl=2 l= 40 prim: UTF8STRING :Mobil S2
2018:d=6 hl=2 l= 16 prim: INTEGER :64022A0CF088F79AF0024C139729BA23
2036:d=5 hl=2 l= 9 cons: SEQUENCE
2038:d=6 hl=2 l= 5 prim: OBJECT :sha1
2045:d=6 hl=2 l= 0 prim: NULL
2047:d=5 hl=2 l= 93 cons: cont [ 0 ]
2049:d=6 hl=2 l= 24 cons: SEQUENCE
2051:d=7 hl=2 l= 9 prim: OBJECT :contentType
2062:d=7 hl=2 l= 11 cons: SET
2064:d=8 hl=2 l= 9 prim: OBJECT :pkcs7-data
2075:d=6 hl=2 l= 28 cons: SEQUENCE
2077:d=7 hl=2 l= 9 prim: OBJECT :signingTime
2088:d=7 hl=2 l= 15 cons: SET
2090:d=8 hl=2 l= 13 prim: UTCTIME :160906195531Z
2105:d=6 hl=2 l= 35 cons: SEQUENCE
2107:d=7 hl=2 l= 9 prim: OBJECT :messageDigest
2118:d=7 hl=2 l= 22 cons: SET
2120:d=8 hl=2 l= 20 prim: OCTET STRING [HEX DUMP]:049FB27A9ED352096E59BF189BF35ADD1C88D4CF
2142:d=5 hl=2 l= 13 cons: SEQUENCE
2144:d=6 hl=2 l= 9 prim: OBJECT :rsaEncryption
2155:d=6 hl=2 l= 0 prim: NULL
2157:d=5 hl=4 l= 256 prim: OCTET STRING [HEX DUMP]:1EEBD18D0AE9BCD393FECB45AD18C30832ACDF83CDF703B6CF093C275BF0FB0D9B6697C9C3D4652ED1C48BC2816DF6A02620AAC9518A79367443F664A34C6EFD023649FFC18785342D7BCA311449BE2155B309008A1A68B296CD50EFE315A34A5C2E7303EA169201B150B94F8C20851F40B978121CDFF50D6D3C699483F3A7AAEA37D02DE20CEFEE88AC5947BD2B573C338A9145BB942FBF7
如你所见,它们看起来非常不同。在这一点上,我错过了一些东西?我的意思是,我应该在第二个上做一些转换它看起来像第一个签名? 就像我之前说的那样,我和那些家伙使用相同的服务,但他们在签名的pdf上有不同的签名类型(而且它也有效)。