Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let/PKIApplet.java: signKeyPrivate = (RSAPrivateCrtKey)KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_CRT_PRIVATE, KeyBuilder.LENGTH_RSA_1024, false);
- ./AppletPlayground/src/net/sourceforge/javacardsign/applet/PKIApplet.java: decKeyPrivate = (RSAPrivateCrtKey)KeyBuilder.buildKey(KeyBuilder.TYPE_RSA_CRT_PRIVATE, KeyBuilder.LENGTH_RSA_1024, false);
- lauri@lauri-c720p ~/Projektid/idukaart $ ^C
- lauri@lauri-c720p ~/Projektid/idukaart $ grep -r _CRT_ . | grep -v Kahend^C
- (reverse-i-search)`open': ^Censc-tool -l
- lauri@lauri-c720p ~/Projektid/idukaart $ java -jar gp.jar -install ../AppletPlayground/
- Error: Unable to access jarfile gp.jar
- lauri@lauri-c720p ~/Projektid/idukaart $ cd GlobalPlatformPro/
- lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ java -jar gp.jar -install ../AppletPlayground/
- AlgTest.cap .classpath FluffyPGPApplet lib/ OpenEMV.cap PLAID.cap .travis.yml
- BeID.cap CoolKeyApplet.cap .git/ MuscleApplet.cap OpenPGPApplet .project
- BTChip.cap DriversLicense.cap .gitignore NDEF.cap PassportApplet.cap README.md
- build.xml ext/ ISOApplet.cap OATH.cap PKIApplet.cap src/
- lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ java -jar gp.jar -install ../AppletPlayground/OpenPGPApplet
- pro.javacard.gp.GPException: Install for Install and make selectable failed SW: 6444
- at pro.javacard.gp.GlobalPlatform.check(GlobalPlatform.java:1092)
- at pro.javacard.gp.GlobalPlatform.installAndMakeSelectable(GlobalPlatform.java:798)
- at pro.javacard.gp.GPTool.main(GPTool.java:495)
- lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ java -jar gp.jar -install ../AppletPlayground/OpenPGPApplet
- pro.javacard.gp.GPException: Install for Install and make selectable failed SW: 6A84
- at pro.javacard.gp.GlobalPlatform.check(GlobalPlatform.java:1092)
- at pro.javacard.gp.GlobalPlatform.installAndMakeSelectable(GlobalPlatform.java:798)
- at pro.javacard.gp.GPTool.main(GPTool.java:495)
- lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ java -jar gp.jar -install ../AppletPlayground/FluffyPGPApplet
- pro.javacard.gp.GPException: STRICT WARNING: Package with AID D27600012401 is already present on card
- at pro.javacard.gp.GlobalPlatform.printStrictWarning(GlobalPlatform.java:184)
- at pro.javacard.gp.GlobalPlatform.loadCapFile(GlobalPlatform.java:693)
- at pro.javacard.gp.GlobalPlatform.loadCapFile(GlobalPlatform.java:686)
- at pro.javacard.gp.GPTool.main(GPTool.java:471)
- lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ java -jar gp.jar -uninstall ../AppletPlayground/OpenPGPApplet
- D27600012401 deleted.
- lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ java -jar gp.jar -install ../AppletPlayground/FluffyPGPApplet
- lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ gpg --help
- gpg (GnuPG) 1.4.16
- Copyright (C) 2013 Free Software Foundation, Inc.
- License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
- This is free software: you are free to change and redistribute it.
- There is NO WARRANTY, to the extent permitted by law.
- Home: ~/.gnupg
- Toetatud algoritmid:
- Avalik võti: RSA, RSA-E, RSA-S, ELG-E, DSA
- Šiffer: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
- CAMELLIA128, CAMELLIA192, CAMELLIA256
- Räsi: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
- Pakkimine: Pakkimata, ZIP, ZLIB, BZIP2
- Süntaks: gpg [võtmed] [failid]
- allkirjasta, kontrolli, krüpti ja dekrüpti
- vaikimisi operatsioon sõltub sisendandmetest
- Käsud:
- -s, --sign [fail] loo allkiri
- --clearsign [fail] loo avateksti allkiri
- -b, --detach-sign loo eraldiseisev allkiri
- -e, --encrypt krüpteeri andmed
- -c, --symmetric krüpteerimine kasutades ainult sümmeetrilist šifrit
- -d, --decrypt dekrüpteeri andmed (vaikimisi)
- --verify kontrolli allkirja
- --list-keys näita võtmeid
- --list-sigs näita võtmeid ja allkirju
- --check-sigs list and check key signatures
- --fingerprint näita võtmeid ja sõrmejälgi
- -K, --list-secret-keys näita salajasi võtmeid
- --gen-key genereeri uus võtmepaar
- --delete-keys eemalda võtmed avalike võtmete hoidlast
- --delete-secret-keys eemalda võtmed salajaste võtmete hoidlast
- --sign-key allkirjasta võti
- --lsign-key allkirjasta võti lokaalselt
- --edit-key allkirjasta või toimeta võtit
- --gen-revoke genereeri tühistamise sertifikaat
- --export ekspordi võtmed
- --send-keys ekspordi võtmed võtmeserverisse
- --recv-keys impordi võtmed võtmeserverist
- --search-keys otsi võtmeid võtmeserverist
- --refresh-keys uuenda võtmeid võtmeserverist
- --import impordi/mesti võtmed
- --card-status print the card status
- --card-edit change data on a card
- --change-pin change a card's PIN
- --update-trustdb uuenda usalduse andmebaasi
- --print-md algo [failid]
- trüki teatelühendid
- Võtmed:
- -a, --armor loo ascii pakendis väljund
- -r, --recipient NIMI krüpti NIMEle
- -u, --local-user kasuta seda kasutaja IDd
- -z N määra pakkimise tase N (0 blokeerib)
- --textmode kasuta kanoonilist tekstimoodi
- -o, --output kasuta väljundfailina
- -v, --verbose ole jutukas
- -n, --dry-run ära tee mingeid muutusi
- -i, --interactive küsi enne ülekirjutamist
- --openpgp use strict OpenPGP behavior
- --pgp2 generate PGP 2.x compatible messages
- (Kõikide käskude ja võtmete täieliku kirjelduse leiate manualist)
- Näited:
- -se -r Bob [fail] allkirjasta ja krüpti kasutajale Bob
- --clearsign [fail] loo avateksti allkiri
- --detach-sign [fail] loo eraldiseisev allkiri
- --list-keys [nimed] näita võtmeid
- --fingerprint [nimed] näita sõrmejälgi
- Palun saatke veateated aadressil <gnupg-bugs@gnu.org>.
- lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ gpg --card-status
- gpg: detected reader `OMNIKEY CardMan 1021 00 00'
- Application ID ...: D2760001240102000000000000000000
- Version ..........: 2.0
- Manufacturer .....: test card
- Serial number ....: 00000000
- Name of cardholder: [not set]
- Language prefs ...: [not set]
- Sex ..............: unspecified
- URL of public key : [not set]
- Login data .......: [not set]
- Private DO 1 .....: [not set]
- Private DO 2 .....: [not set]
- Signature PIN ....: forced
- Key attributes ...: 2048R 2048R 2048R
- Max. PIN lengths .: 32 32 32
- PIN retry counter : 3 0 3
- Signature counter : 0
- Signature key ....: [none]
- Encryption key....: [none]
- Authentication key: [none]
- General key info..: [none]
- lauri@lauri-c720p ~/Projektid/idukaart/GlobalPlatformPro $ gpg --card-edit
- gpg: detected reader `OMNIKEY CardMan 1021 00 00'
- Application ID ...: D2760001240102000000000000000000
- Version ..........: 2.0
- Manufacturer .....: test card
- Serial number ....: 00000000
- Name of cardholder: [not set]
- Language prefs ...: [not set]
- Sex ..............: unspecified
- URL of public key : [not set]
- Login data .......: [not set]
- Private DO 1 .....: [not set]
- Private DO 2 .....: [not set]
- Signature PIN ....: forced
- Key attributes ...: 2048R 2048R 2048R
- Max. PIN lengths .: 32 32 32
- PIN retry counter : 3 0 3
- Signature counter : 0
- Signature key ....: [none]
- Encryption key....: [none]
- Authentication key: [none]
- General key info..: [none]
- gpg/card> help
- quit välju sellest menüüst
- admin show admin commands
- help näita seda abiinfot
- list list all available data
- fetch fetch the key specified in the card URL
- passwd menu to change or unblock the PIN
- verify verify the PIN and list all data
- unblock unblock the PIN using a Reset Code
- gpg/card> admin
- Admin commands are allowed
- gpg/card> help
- quit välju sellest menüüst
- admin show admin commands
- help näita seda abiinfot
- list list all available data
- name change card holder's name
- url change URL to retrieve key
- fetch fetch the key specified in the card URL
- login change the login name
- lang change the language preferences
- sex change card holder's sex
- cafpr change a CA fingerprint
- forcesig toggle the signature force PIN flag
- generate generate new keys
- passwd menu to change or unblock the PIN
- verify verify the PIN and list all data
- unblock unblock the PIN using a Reset Code
- gpg/card> sex
- Sex ((M)ale, (F)emale or space): m
- gpg: 3 Admin PIN attempts remaining before card is permanently locked
- Please enter the Admin PIN
- gpg: PIN for CHV3 is too short; minimum length is 8
- gpg: error setting sex: halb parool
- gpg/card> sex
- Sex ((M)ale, (F)emale or space): m
- gpg: 3 Admin PIN attempts remaining before card is permanently locked
- Please enter the Admin PIN
- gpg/card> help
- quit välju sellest menüüst
- admin show admin commands
- help näita seda abiinfot
- list list all available data
- name change card holder's name
- url change URL to retrieve key
- fetch fetch the key specified in the card URL
- login change the login name
- lang change the language preferences
- sex change card holder's sex
- cafpr change a CA fingerprint
- forcesig toggle the signature force PIN flag
- generate generate new keys
- passwd menu to change or unblock the PIN
- verify verify the PIN and list all data
- unblock unblock the PIN using a Reset Code
- gpg/card> list
- Application ID ...: D2760001240102000000000000000000
- Version ..........: 2.0
- Manufacturer .....: test card
- Serial number ....: 00000000
- Name of cardholder: [not set]
- Language prefs ...: [not set]
- Sex ..............: male
- URL of public key : [not set]
- Login data .......: [not set]
- Private DO 4 .....: [not set]
- Signature PIN ....: forced
- Key attributes ...: 2048R 2048R 2048R
- Max. PIN lengths .: 32 32 32
- PIN retry counter : 3 0 3
- Signature counter : 0
- Signature key ....: [none]
- Encryption key....: [none]
- Authentication key: [none]
- General key info..: [none]
- gpg/card> generate
- Make off-card backup of encryption key? (Y/n) n
- Please note that the factory settings of the PINs are
- PIN = `123456' Admin PIN = `12345678'
- You should change them using the command --change-pin
- Please enter the PIN
- gpg: PIN for CHV2 is too short; minimum length is 6
- gpg: error checking the PIN: halb parool
- gpg/card> generate
- Make off-card backup of encryption key? (Y/n) n
- Please note that the factory settings of the PINs are
- PIN = `123456' Admin PIN = `12345678'
- You should change them using the command --change-pin
- Please enter the PIN
- Palun määrake, kui kaua on võti kehtiv.
- 0 = võti ei aegu
- <n> = võti aegub n päevaga
- <n>w = võti aegub n nädalaga
- <n>m = võti aegub n kuuga
- <n>y = võti aegub n aastaga
- Võti on kehtiv kuni? (0) 0
- Key does not expire at all
- Is this correct? (y/N) y
- You need a user ID to identify your key; the software constructs the user ID
- from the Real Name, Comment and Email Address in this form:
- "Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"
- Pärisnimi: Lauri Võsandi
- E-posti aadress: lauri.vosandi@gmail.com
- Kommentaar: APT repo signing
- Te kasutate kooditabelit `utf-8'.
- Te valisite selle KASUTAJA-ID:
- "Lauri Võsandi (APT repo signing) <lauri.vosandi@gmail.com>"
- Muuda (N)ime, (K)ommentaari, (E)posti või (O)k/(V)älju? O
- gpg: generating new key
- gpg: please wait while key is being generated ...
- gpg: generating key failed
- gpg: key generation failed: üldine viga
- Võtme genereerimine ebaõnnestus: üldine viga
- gpg/card> list
- Application ID ...: D2760001240102000000000000000000
- Version ..........: 2.0
- Manufacturer .....: test card
- Serial number ....: 00000000
- Name of cardholder: [not set]
- Language prefs ...: [not set]
- Sex ..............: male
- URL of public key : [not set]
- Login data .......: [not set]
- Private DO 1 .....: [not set]
- Private DO 2 .....: [not set]
- Private DO 3 .....: [not set]
- Private DO 4 .....: [not set]
- Signature PIN ....: forced
- Key attributes ...: 2048R 2048R 2048R
- Max. PIN lengths .: 32 32 32
- PIN retry counter : 3 0 3
- Signature counter : 0
- Signature key ....: [none]
- Encryption key....: [none]
- Authentication key: [none]
- General key info..: [none]
- gpg/card>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement