Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 5th, 2012  |  syntax: Bash  |  size: 8.60 KB  |  views: 40  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. feurleda@morpheus:~$ openssl cms -decrypt -inform DER -in sandvout-aes256-without4bytes.txt -out decrypted.bin -recip AlonsoCert.pem -inkey key1.pem
  2.  
  3. feurleda@morpheus:~$ openssl rsautl -verify -inkey AlonsoCert.pem -keyform pem -certin -in decrypted.bin
  4. RSA operation error
  5. 3073521864:error:0406706C:rsa routines:RSA_EAY_PUBLIC_DECRYPT:data greater than mod len:rsa_eay.c:680:
  6.  
  7. feurleda@morpheus:~$ openssl asn1parse -in decrypted.bin -inform DER
  8.     0:d=0  hl=4 l=2440 cons: SEQUENCE
  9.     4:d=1  hl=2 l=   9 prim: OBJECT            :pkcs7-signedData
  10.    15:d=1  hl=4 l=2425 cons: cont [ 0 ]
  11.    19:d=2  hl=4 l=2421 cons: SEQUENCE
  12.    23:d=3  hl=2 l=   1 prim: INTEGER           :01
  13.    26:d=3  hl=2 l=  14 cons: SET
  14.    28:d=4  hl=2 l=  12 cons: SEQUENCE
  15.    30:d=5  hl=2 l=   8 prim: OBJECT            :md2
  16.    40:d=5  hl=2 l=   0 prim: NULL
  17.    42:d=3  hl=2 l=  52 cons: SEQUENCE
  18.    44:d=4  hl=2 l=   9 prim: OBJECT            :pkcs7-data
  19.    55:d=4  hl=2 l=  39 cons: cont [ 0 ]
  20.    57:d=5  hl=2 l=  37 prim: OCTET STRING      [HEX DUMP]:496E7365727420746865206D65737361676520746F206265207369676E6564206865726500
  21.    96:d=3  hl=4 l=1694 cons: cont [ 0 ]
  22.   100:d=4  hl=4 l=1690 cons: SEQUENCE
  23.   104:d=5  hl=4 l=1154 cons: SEQUENCE
  24.   108:d=6  hl=2 l=   3 cons: cont [ 0 ]
  25.   110:d=7  hl=2 l=   1 prim: INTEGER           :02
  26.   113:d=6  hl=2 l=   1 prim: INTEGER           :02
  27.   116:d=6  hl=2 l=  13 cons: SEQUENCE
  28.   118:d=7  hl=2 l=   9 prim: OBJECT            :sha1WithRSAEncryption
  29.   129:d=7  hl=2 l=   0 prim: NULL
  30.   131:d=6  hl=2 l=  87 cons: SEQUENCE
  31.   133:d=7  hl=2 l=  11 cons: SET
  32.   135:d=8  hl=2 l=   9 cons: SEQUENCE
  33.   137:d=9  hl=2 l=   3 prim: OBJECT            :countryName
  34.   142:d=9  hl=2 l=   2 prim: PRINTABLESTRING   :DE
  35.   146:d=7  hl=2 l=  11 cons: SET
  36.   148:d=8  hl=2 l=   9 cons: SEQUENCE
  37.   150:d=9  hl=2 l=   3 prim: OBJECT            :stateOrProvinceName
  38.   155:d=9  hl=2 l=   2 prim: PRINTABLESTRING   :BW
  39.   159:d=7  hl=2 l=  17 cons: SET
  40.   161:d=8  hl=2 l=  15 cons: SEQUENCE
  41.   163:d=9  hl=2 l=   3 prim: OBJECT            :localityName
  42.   168:d=9  hl=2 l=   8 prim: PRINTABLESTRING   :Balingen
  43.   178:d=7  hl=2 l=  17 cons: SET
  44.   180:d=8  hl=2 l=  15 cons: SEQUENCE
  45.   182:d=9  hl=2 l=   3 prim: OBJECT            :organizationName
  46.   187:d=9  hl=2 l=   8 prim: PRINTABLESTRING   :sodge IT
  47.   197:d=7  hl=2 l=  21 cons: SET
  48.   199:d=8  hl=2 l=  19 cons: SEQUENCE
  49.   201:d=9  hl=2 l=   3 prim: OBJECT            :commonName
  50.   206:d=9  hl=2 l=  12 prim: PRINTABLESTRING   :AlonsoTestCA
  51.   220:d=6  hl=2 l=  30 cons: SEQUENCE
  52.   222:d=7  hl=2 l=  13 prim: UTCTIME           :121114162331Z
  53.   237:d=7  hl=2 l=  13 prim: UTCTIME           :131114162331Z
  54.   252:d=6  hl=3 l= 142 cons: SEQUENCE
  55.   255:d=7  hl=2 l=  11 cons: SET
  56.   257:d=8  hl=2 l=   9 cons: SEQUENCE
  57.   259:d=9  hl=2 l=   3 prim: OBJECT            :countryName
  58.   264:d=9  hl=2 l=   2 prim: PRINTABLESTRING   :DE
  59.   268:d=7  hl=2 l=  11 cons: SET
  60.   270:d=8  hl=2 l=   9 cons: SEQUENCE
  61.   272:d=9  hl=2 l=   3 prim: OBJECT            :stateOrProvinceName
  62.   277:d=9  hl=2 l=   2 prim: PRINTABLESTRING   :BW
  63.   281:d=7  hl=2 l=  17 cons: SET
  64.   283:d=8  hl=2 l=  15 cons: SEQUENCE
  65.   285:d=9  hl=2 l=   3 prim: OBJECT            :localityName
  66.   290:d=9  hl=2 l=   8 prim: PRINTABLESTRING   :Balingen
  67.   300:d=7  hl=2 l=  17 cons: SET
  68.   302:d=8  hl=2 l=  15 cons: SEQUENCE
  69.   304:d=9  hl=2 l=   3 prim: OBJECT            :organizationName
  70.   309:d=9  hl=2 l=   8 prim: PRINTABLESTRING   :sodge IT
  71.   319:d=7  hl=2 l=  34 cons: SET
  72.   321:d=8  hl=2 l=  32 cons: SEQUENCE
  73.   323:d=9  hl=2 l=   3 prim: OBJECT            :commonName
  74.   328:d=9  hl=2 l=  25 prim: T61STRING         :alonso.schaich@sodgeit.de
  75.   355:d=7  hl=2 l=  40 cons: SET
  76.   357:d=8  hl=2 l=  38 cons: SEQUENCE
  77.   359:d=9  hl=2 l=   9 prim: OBJECT            :emailAddress
  78.   370:d=9  hl=2 l=  25 prim: IA5STRING         :alonso.schaich@sodgeit.de
  79.   397:d=6  hl=4 l= 546 cons: SEQUENCE
  80.   401:d=7  hl=2 l=  13 cons: SEQUENCE
  81.   403:d=8  hl=2 l=   9 prim: OBJECT            :rsaEncryption
  82.   414:d=8  hl=2 l=   0 prim: NULL
  83.   416:d=7  hl=4 l= 527 prim: BIT STRING
  84.   947:d=6  hl=4 l= 311 cons: cont [ 3 ]
  85.   951:d=7  hl=4 l= 307 cons: SEQUENCE
  86.   955:d=8  hl=2 l=   9 cons: SEQUENCE
  87.   957:d=9  hl=2 l=   3 prim: OBJECT            :X509v3 Basic Constraints
  88.   962:d=9  hl=2 l=   2 prim: OCTET STRING      [HEX DUMP]:3000
  89.   966:d=8  hl=2 l=  17 cons: SEQUENCE
  90.   968:d=9  hl=2 l=   9 prim: OBJECT            :Netscape Cert Type
  91.   979:d=9  hl=2 l=   4 prim: OCTET STRING      [HEX DUMP]:030204B0
  92.   985:d=8  hl=2 l=  43 cons: SEQUENCE
  93.   987:d=9  hl=2 l=   9 prim: OBJECT            :Netscape Comment
  94.   998:d=9  hl=2 l=  30 prim: OCTET STRING      [HEX DUMP]:161C54696E7943412047656E657261746564204365727469666963617465
  95.  1030:d=8  hl=2 l=  29 cons: SEQUENCE
  96.  1032:d=9  hl=2 l=   3 prim: OBJECT            :X509v3 Subject Key Identifier
  97.  1037:d=9  hl=2 l=  22 prim: OCTET STRING      [HEX DUMP]:04140F5D07E74C881CD23F9B695575A96179B0936E9B
  98.  1061:d=8  hl=3 l= 136 cons: SEQUENCE
  99.  1064:d=9  hl=2 l=   3 prim: OBJECT            :X509v3 Authority Key Identifier
  100.  1069:d=9  hl=3 l= 128 prim: OCTET STRING      [HEX DUMP]:307E8014DC9A4599119193EDA0C37B4D31D01D3A46AEA86BA15BA4593057310B3009060355040613024445310B30090603550408130242573111300F0603550407130842616C696E67656E3111300F060355040A1308736F646765204954311530130603550403130C416C6F6E736F546573744341820900A0469759BBD4E189
  101.  1200:d=8  hl=2 l=   9 cons: SEQUENCE
  102.  1202:d=9  hl=2 l=   3 prim: OBJECT            :X509v3 Issuer Alternative Name
  103.  1207:d=9  hl=2 l=   2 prim: OCTET STRING      [HEX DUMP]:3000
  104.  1211:d=8  hl=2 l=  36 cons: SEQUENCE
  105.  1213:d=9  hl=2 l=   3 prim: OBJECT            :X509v3 Subject Alternative Name
  106.  1218:d=9  hl=2 l=  29 prim: OCTET STRING      [HEX DUMP]:301B8119616C6F6E736F2E7363686169636840736F64676569742E6465
  107.  1249:d=8  hl=2 l=  11 cons: SEQUENCE
  108.  1251:d=9  hl=2 l=   3 prim: OBJECT            :X509v3 Key Usage
  109.  1256:d=9  hl=2 l=   4 prim: OCTET STRING      [HEX DUMP]:030205A0
  110.  1262:d=5  hl=2 l=  13 cons: SEQUENCE
  111.  1264:d=6  hl=2 l=   9 prim: OBJECT            :sha1WithRSAEncryption
  112.  1275:d=6  hl=2 l=   0 prim: NULL
  113.  1277:d=5  hl=4 l= 513 prim: BIT STRING
  114.  1794:d=3  hl=4 l= 646 cons: SET
  115.  1798:d=4  hl=4 l= 642 cons: SEQUENCE
  116.  1802:d=5  hl=2 l=   1 prim: INTEGER           :01
  117.  1805:d=5  hl=2 l=  92 cons: SEQUENCE
  118.  1807:d=6  hl=2 l=  87 cons: SEQUENCE
  119.  1809:d=7  hl=2 l=  11 cons: SET
  120.  1811:d=8  hl=2 l=   9 cons: SEQUENCE
  121.  1813:d=9  hl=2 l=   3 prim: OBJECT            :countryName
  122.  1818:d=9  hl=2 l=   2 prim: PRINTABLESTRING   :DE
  123.  1822:d=7  hl=2 l=  11 cons: SET
  124.  1824:d=8  hl=2 l=   9 cons: SEQUENCE
  125.  1826:d=9  hl=2 l=   3 prim: OBJECT            :stateOrProvinceName
  126.  1831:d=9  hl=2 l=   2 prim: PRINTABLESTRING   :BW
  127.  1835:d=7  hl=2 l=  17 cons: SET
  128.  1837:d=8  hl=2 l=  15 cons: SEQUENCE
  129.  1839:d=9  hl=2 l=   3 prim: OBJECT            :localityName
  130.  1844:d=9  hl=2 l=   8 prim: PRINTABLESTRING   :Balingen
  131.  1854:d=7  hl=2 l=  17 cons: SET
  132.  1856:d=8  hl=2 l=  15 cons: SEQUENCE
  133.  1858:d=9  hl=2 l=   3 prim: OBJECT            :organizationName
  134.  1863:d=9  hl=2 l=   8 prim: PRINTABLESTRING   :sodge IT
  135.  1873:d=7  hl=2 l=  21 cons: SET
  136.  1875:d=8  hl=2 l=  19 cons: SEQUENCE
  137.  1877:d=9  hl=2 l=   3 prim: OBJECT            :commonName
  138.  1882:d=9  hl=2 l=  12 prim: PRINTABLESTRING   :AlonsoTestCA
  139.  1896:d=6  hl=2 l=   1 prim: INTEGER           :02
  140.  1899:d=5  hl=2 l=  12 cons: SEQUENCE
  141.  1901:d=6  hl=2 l=   8 prim: OBJECT            :md2
  142.  1911:d=6  hl=2 l=   0 prim: NULL
  143.  1913:d=5  hl=2 l=  13 cons: SEQUENCE
  144.  1915:d=6  hl=2 l=   9 prim: OBJECT            :rsaEncryption
  145.  1926:d=6  hl=2 l=   0 prim: NULL
  146.  1928:d=5  hl=4 l= 512 prim: OCTET STRING      [HEX DUMP]:7ECE87D7A44445B137D9CFA9AEC9DE37FE6686FA88ADC44229D79DA4EF4CDB10ABDE8CC76E9A262CCC8D4B4F6757D9BCB29A4D46C68DB893F8681F660F263D026929A7AC7B24A6C53DA8911E01CCDCFCA73AC42D04C35F10B86A6977D4D1B14FD753B4B77906A54B1053D327DD061015CF9F275D2C02E501311571215E75077C87C6292AFD0FCC1F10AF24EDE2C6830611E234D4A232777A446E38FAE5815C896BE188BBF7590ABA73FA96EE5E0B3053F3A396401DF66809B5748BA4D3ACAA0282F74BF14556D32A7C9DA249E69317D84E822DA6A5E849D08F5BF3BABC09F9A1ED140DB0F6C988D0AF1478A8A29427E70A6FD6DC0EE62869A6AA23CCC3254CC9F7C3A1E897C882B9AEE9F5233798A52F130C151AA1DDC7F1EB22CF412FBE619245D2BA43845FF8B71F6861A5032170B1D3BA27036E3B6B3C2F1AF7D81911DC1448386C8439AD0C20727BC54E4FDD81FEA55FCC6E3EF26B39EBCFD2822740DAD9A4EE48591E468437E282A00B12DB7F3DAFE7250EF6A3B7D6886D40BEA33AACC3E3AD4A1EA7A1FCEB3884402107DA209A4A0EB107DBBD7F52211FDAD7F4D7F62806CED0C22648A7907C41150BBC5B291FB026FEE96AD714E1DA28489CB4D097A2F932D05C2D4D1059531470C1E900E7AC38BC6592278C6260813110FBDBD36587FD1205E63C7A7A513FB3BB771F9C582CD2EF0C084EC3D253C1FAB7BE0F91DF56
clone this paste RAW Paste Data