Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.80 KB | None | 0 0
  1. let/PKIApplet.java: signKeyPrivate = (RSAPrivateCrtKey)KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_CRT_PRIVATE, KeyBuilder.LENGTH_RSA_1024, false);
  2. ./AppletPlayground/src/net/sourceforge/javacardsign/applet/PKIApplet.java: decKeyPrivate = (RSAPrivateCrtKey)KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_CRT_PRIVATE, KeyBuilder.LENGTH_RSA_1024, false);
  3. lauri@lauri-c720p ~/Projektid/idukaart $ ^C
  4. lauri@lauri-c720p ~/Projektid/idukaart $ grep -r _CRT_ . | grep -v Kahend^C
  5. (reverse-i-search)`open': ^Censc-tool -l
  6. lauri@lauri-c720p ~/Projektid/idukaart $ java -jar gp.jar -install ../AppletPlayground/
  7. Error: Unable to access jarfile gp.jar
  8. lauri@lauri-c720p ~/Projektid/idukaart $ cd GlobalPlatformPro/
  9. lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ java -jar gp.jar -install ../AppletPlayground/
  10. AlgTest.cap .classpath FluffyPGPApplet lib/ OpenEMV.cap PLAID.cap .travis.yml
  11. BeID.cap CoolKeyApplet.cap .git/ MuscleApplet.cap OpenPGPApplet .project
  12. BTChip.cap DriversLicense.cap .gitignore NDEF.cap PassportApplet.cap README.md
  13. build.xml ext/ ISOApplet.cap OATH.cap PKIApplet.cap src/
  14. lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ java -jar gp.jar -install ../AppletPlayground/OpenPGPApplet
  15. pro.javacard.gp.GPException: Install for Install and make selectable failed SW: 6444
  16. at pro.javacard.gp.GlobalPlatform.check(GlobalPlatform.java:1092)
  17. at pro.javacard.gp.GlobalPlatform.installAndMakeSelectable(GlobalPlatform.java:798)
  18. at pro.javacard.gp.GPTool.main(GPTool.java:495)
  19. lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ java -jar gp.jar -install ../AppletPlayground/OpenPGPApplet
  20. pro.javacard.gp.GPException: Install for Install and make selectable failed SW: 6A84
  21. at pro.javacard.gp.GlobalPlatform.check(GlobalPlatform.java:1092)
  22. at pro.javacard.gp.GlobalPlatform.installAndMakeSelectable(GlobalPlatform.java:798)
  23. at pro.javacard.gp.GPTool.main(GPTool.java:495)
  24. lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ java -jar gp.jar -install ../AppletPlayground/FluffyPGPApplet
  25. pro.javacard.gp.GPException: STRICT WARNING: Package with AID D27600012401 is already present on card
  26. at pro.javacard.gp.GlobalPlatform.printStrictWarning(GlobalPlatform.java:184)
  27. at pro.javacard.gp.GlobalPlatform.loadCapFile(GlobalPlatform.java:693)
  28. at pro.javacard.gp.GlobalPlatform.loadCapFile(GlobalPlatform.java:686)
  29. at pro.javacard.gp.GPTool.main(GPTool.java:471)
  30. lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ java -jar gp.jar -uninstall ../AppletPlayground/OpenPGPApplet
  31. D27600012401 deleted.
  32. lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ java -jar gp.jar -install ../AppletPlayground/FluffyPGPApplet
  33. lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ gpg --help
  34. gpg (GnuPG) 1.4.16
  35. Copyright (C) 2013 Free Software Foundation, Inc.
  36. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  37. This is free software: you are free to change and redistribute it.
  38. There is NO WARRANTY, to the extent permitted by law.
  39.  
  40. Home: ~/.gnupg
  41. Toetatud algoritmid:
  42. Avalik võti: RSA, RSA-E, RSA-S, ELG-E, DSA
  43. Šiffer: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
  44. CAMELLIA128, CAMELLIA192, CAMELLIA256
  45. Räsi: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
  46. Pakkimine: Pakkimata, ZIP, ZLIB, BZIP2
  47.  
  48. Süntaks: gpg [võtmed] [failid]
  49. allkirjasta, kontrolli, krüpti ja dekrüpti
  50. vaikimisi operatsioon sõltub sisendandmetest
  51.  
  52. Käsud:
  53.  
  54. -s, --sign [fail] loo allkiri
  55. --clearsign [fail] loo avateksti allkiri
  56. -b, --detach-sign loo eraldiseisev allkiri
  57. -e, --encrypt krüpteeri andmed
  58. -c, --symmetric krüpteerimine kasutades ainult sümmeetrilist šifrit
  59. -d, --decrypt dekrüpteeri andmed (vaikimisi)
  60. --verify kontrolli allkirja
  61. --list-keys näita võtmeid
  62. --list-sigs näita võtmeid ja allkirju
  63. --check-sigs list and check key signatures
  64. --fingerprint näita võtmeid ja sõrmejälgi
  65. -K, --list-secret-keys näita salajasi võtmeid
  66. --gen-key genereeri uus võtmepaar
  67. --delete-keys eemalda võtmed avalike võtmete hoidlast
  68. --delete-secret-keys eemalda võtmed salajaste võtmete hoidlast
  69. --sign-key allkirjasta võti
  70. --lsign-key allkirjasta võti lokaalselt
  71. --edit-key allkirjasta või toimeta võtit
  72. --gen-revoke genereeri tühistamise sertifikaat
  73. --export ekspordi võtmed
  74. --send-keys ekspordi võtmed võtmeserverisse
  75. --recv-keys impordi võtmed võtmeserverist
  76. --search-keys otsi võtmeid võtmeserverist
  77. --refresh-keys uuenda võtmeid võtmeserverist
  78. --import impordi/mesti võtmed
  79. --card-status print the card status
  80. --card-edit change data on a card
  81. --change-pin change a card's PIN
  82. --update-trustdb uuenda usalduse andmebaasi
  83. --print-md algo [failid]
  84. trüki teatelühendid
  85.  
  86. Võtmed:
  87.  
  88. -a, --armor loo ascii pakendis väljund
  89. -r, --recipient NIMI krüpti NIMEle
  90. -u, --local-user kasuta seda kasutaja IDd
  91. -z N määra pakkimise tase N (0 blokeerib)
  92. --textmode kasuta kanoonilist tekstimoodi
  93. -o, --output kasuta väljundfailina
  94. -v, --verbose ole jutukas
  95. -n, --dry-run ära tee mingeid muutusi
  96. -i, --interactive küsi enne ülekirjutamist
  97. --openpgp use strict OpenPGP behavior
  98. --pgp2 generate PGP 2.x compatible messages
  99.  
  100. (Kõikide käskude ja võtmete täieliku kirjelduse leiate manualist)
  101.  
  102. Näited:
  103.  
  104. -se -r Bob [fail] allkirjasta ja krüpti kasutajale Bob
  105. --clearsign [fail] loo avateksti allkiri
  106. --detach-sign [fail] loo eraldiseisev allkiri
  107. --list-keys [nimed] näita võtmeid
  108. --fingerprint [nimed] näita sõrmejälgi
  109.  
  110. Palun saatke veateated aadressil <gnupg-bugs@gnu.org>.
  111. lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ gpg --card-status
  112. gpg: detected reader `OMNIKEY CardMan 1021 00 00'
  113. Application ID ...: D2760001240102000000000000000000
  114. Version ..........: 2.0
  115. Manufacturer .....: test card
  116. Serial number ....: 00000000
  117. Name of cardholder: [not set]
  118. Language prefs ...: [not set]
  119. Sex ..............: unspecified
  120. URL of public key : [not set]
  121. Login data .......: [not set]
  122. Private DO 1 .....: [not set]
  123. Private DO 2 .....: [not set]
  124. Signature PIN ....: forced
  125. Key attributes ...: 2048R 2048R 2048R
  126. Max. PIN lengths .: 32 32 32
  127. PIN retry counter : 3 0 3
  128. Signature counter : 0
  129. Signature key ....: [none]
  130. Encryption key....: [none]
  131. Authentication key: [none]
  132. General key info..: [none]
  133. lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ gpg --card-edit
  134.  
  135. gpg: detected reader `OMNIKEY CardMan 1021 00 00'
  136. Application ID ...: D2760001240102000000000000000000
  137. Version ..........: 2.0
  138. Manufacturer .....: test card
  139. Serial number ....: 00000000
  140. Name of cardholder: [not set]
  141. Language prefs ...: [not set]
  142. Sex ..............: unspecified
  143. URL of public key : [not set]
  144. Login data .......: [not set]
  145. Private DO 1 .....: [not set]
  146. Private DO 2 .....: [not set]
  147. Signature PIN ....: forced
  148. Key attributes ...: 2048R 2048R 2048R
  149. Max. PIN lengths .: 32 32 32
  150. PIN retry counter : 3 0 3
  151. Signature counter : 0
  152. Signature key ....: [none]
  153. Encryption key....: [none]
  154. Authentication key: [none]
  155. General key info..: [none]
  156.  
  157. gpg/card> help
  158. quit välju sellest menüüst
  159. admin show admin commands
  160. help näita seda abiinfot
  161. list list all available data
  162. fetch fetch the key specified in the card URL
  163. passwd menu to change or unblock the PIN
  164. verify verify the PIN and list all data
  165. unblock unblock the PIN using a Reset Code
  166.  
  167. gpg/card> admin
  168. Admin commands are allowed
  169.  
  170. gpg/card> help
  171. quit välju sellest menüüst
  172. admin show admin commands
  173. help näita seda abiinfot
  174. list list all available data
  175. name change card holder's name
  176. url change URL to retrieve key
  177. fetch fetch the key specified in the card URL
  178. login change the login name
  179. lang change the language preferences
  180. sex change card holder's sex
  181. cafpr change a CA fingerprint
  182. forcesig toggle the signature force PIN flag
  183. generate generate new keys
  184. passwd menu to change or unblock the PIN
  185. verify verify the PIN and list all data
  186. unblock unblock the PIN using a Reset Code
  187.  
  188. gpg/card> sex
  189. Sex ((M)ale, (F)emale or space): m
  190. gpg: 3 Admin PIN attempts remaining before card is permanently locked
  191.  
  192. Please enter the Admin PIN
  193. gpg: PIN for CHV3 is too short; minimum length is 8
  194. gpg: error setting sex: halb parool
  195.  
  196. gpg/card> sex
  197. Sex ((M)ale, (F)emale or space): m
  198. gpg: 3 Admin PIN attempts remaining before card is permanently locked
  199.  
  200. Please enter the Admin PIN
  201.  
  202. gpg/card> help
  203. quit välju sellest menüüst
  204. admin show admin commands
  205. help näita seda abiinfot
  206. list list all available data
  207. name change card holder's name
  208. url change URL to retrieve key
  209. fetch fetch the key specified in the card URL
  210. login change the login name
  211. lang change the language preferences
  212. sex change card holder's sex
  213. cafpr change a CA fingerprint
  214. forcesig toggle the signature force PIN flag
  215. generate generate new keys
  216. passwd menu to change or unblock the PIN
  217. verify verify the PIN and list all data
  218. unblock unblock the PIN using a Reset Code
  219.  
  220. gpg/card> list
  221.  
  222. Application ID ...: D2760001240102000000000000000000
  223. Version ..........: 2.0
  224. Manufacturer .....: test card
  225. Serial number ....: 00000000
  226. Name of cardholder: [not set]
  227. Language prefs ...: [not set]
  228. Sex ..............: male
  229. URL of public key : [not set]
  230. Login data .......: [not set]
  231. Private DO 4 .....: [not set]
  232. Signature PIN ....: forced
  233. Key attributes ...: 2048R 2048R 2048R
  234. Max. PIN lengths .: 32 32 32
  235. PIN retry counter : 3 0 3
  236. Signature counter : 0
  237. Signature key ....: [none]
  238. Encryption key....: [none]
  239. Authentication key: [none]
  240. General key info..: [none]
  241.  
  242. gpg/card> generate
  243. Make off-card backup of encryption key? (Y/n) n
  244.  
  245. Please note that the factory settings of the PINs are
  246. PIN = `123456' Admin PIN = `12345678'
  247. You should change them using the command --change-pin
  248.  
  249.  
  250. Please enter the PIN
  251. gpg: PIN for CHV2 is too short; minimum length is 6
  252. gpg: error checking the PIN: halb parool
  253.  
  254. gpg/card> generate
  255. Make off-card backup of encryption key? (Y/n) n
  256.  
  257. Please note that the factory settings of the PINs are
  258. PIN = `123456' Admin PIN = `12345678'
  259. You should change them using the command --change-pin
  260.  
  261.  
  262. Please enter the PIN
  263. Palun määrake, kui kaua on võti kehtiv.
  264. 0 = võti ei aegu
  265. <n> = võti aegub n päevaga
  266. <n>w = võti aegub n nädalaga
  267. <n>m = võti aegub n kuuga
  268. <n>y = võti aegub n aastaga
  269. Võti on kehtiv kuni? (0) 0
  270. Key does not expire at all
  271. Is this correct? (y/N) y
  272.  
  273. You need a user ID to identify your key; the software constructs the user ID
  274. from the Real Name, Comment and Email Address in this form:
  275. "Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"
  276.  
  277. Pärisnimi: Lauri Võsandi
  278. E-posti aadress: lauri.vosandi@gmail.com
  279. Kommentaar: APT repo signing
  280. Te kasutate kooditabelit `utf-8'.
  281. Te valisite selle KASUTAJA-ID:
  282. "Lauri Võsandi (APT repo signing) <lauri.vosandi@gmail.com>"
  283.  
  284. Muuda (N)ime, (K)ommentaari, (E)posti või (O)k/(V)älju? O
  285. gpg: generating new key
  286. gpg: please wait while key is being generated ...
  287. gpg: generating key failed
  288. gpg: key generation failed: üldine viga
  289. Võtme genereerimine ebaõnnestus: üldine viga
  290.  
  291. gpg/card> list
  292.  
  293. Application ID ...: D2760001240102000000000000000000
  294. Version ..........: 2.0
  295. Manufacturer .....: test card
  296. Serial number ....: 00000000
  297. Name of cardholder: [not set]
  298. Language prefs ...: [not set]
  299. Sex ..............: male
  300. URL of public key : [not set]
  301. Login data .......: [not set]
  302. Private DO 1 .....: [not set]
  303. Private DO 2 .....: [not set]
  304. Private DO 3 .....: [not set]
  305. Private DO 4 .....: [not set]
  306. Signature PIN ....: forced
  307. Key attributes ...: 2048R 2048R 2048R
  308. Max. PIN lengths .: 32 32 32
  309. PIN retry counter : 3 0 3
  310. Signature counter : 0
  311. Signature key ....: [none]
  312. Encryption key....: [none]
  313. Authentication key: [none]
  314. General key info..: [none]
  315.  
  316. gpg/card>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement