MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Kindle Developer's Corner (https://www.mobileread.com/forums/forumdisplay.php?f=150)
-   -   Merged Developer Keystore (https://www.mobileread.com/forums/showthread.php?t=152294)

PoP 10-04-2011 01:57 PM

Merged Developer Keystore
 
5 Attachment(s)
PER GENERAL REQUEST -- BIG FAT NOTICE TO DEVELOPERS:
Please dont create unnecessary additional vanity keys. Just use the "test" key already present in the keystore to sign your Kindlets. Spare everybody the trouble of updating their Kindle each time. Help your Karma.


Kindlets come from many developers and are often signed with different keys.

I haved merged keys from all developers active to date in this forum (let me know if I missed any so I can maintain this Merged Developer Keystore)

As requested I make it available in post#1 of this thread for your convenience.

Copying this developer.keystore to your /var/local/java/keystore/ and restarting the Kindle will allow using any of these developer's Kindlet.

Edit:
2012-01-14 merged "LittleLui" keys for Krosswords
2012-04-02 merged "victor" keys for CR3runner.azw2
2012-07-12 merged "pamberg" keys for Kindcalc
2012-10-02 merged "CrazyCoder" keys for a an improved CR3runner.azw2
2012-11-06 renamed aliases to properly identify the test "well known" key (no other addition, no need to update your keystore).

dasmoover 10-04-2011 04:00 PM

Would you please explain how you merged them?

PoP 10-04-2011 05:11 PM

I use the keytool command on a linux desktop:

keytool -importkeystore -srckeystore developer-to-import.keystore -destkeystore developer.keystore

The keystore password is password in case you want to play with it.

keytool complete syntax:
Spoiler:

PoP$ keytool
Syntaxe keytool :

-certreq [-v] [-protected]
[-alias <alias>] [-sigalg <sigalg>]
[-file <csr_file>] [-keypass <mot_passe_clé>]
[-keystore <keystore>] [-storepass <mot_passe_store>]
[-storetype <storetype>] [-providername <name>]
[-providerclass <provider_class_name> [-providerarg <arg>]] ...
[-providerpath <pathlist>]

-changealias [-v] [-protected] -alias <alias> -destalias <destalias>
[-keypass <keypass>]
[-keystore <keystore>] [-storepass <mot_passe_store>]
[-storetype <storetype>] [-providername <name>]
[-providerclass <provider_class_name> [-providerarg <arg>]] ...
[-providerpath <pathlist>]

-delete [-v] [-protected] -alias <alias>
[-keystore <keystore>] [-storepass <mot_passe_store>]
[-storetype <storetype>] [-providername <name>]
[-providerclass <provider_class_name> [-providerarg <arg>]] ...
[-providerpath <pathlist>]

-exportcert [-v] [-rfc] [-protected]
[-alias <alias>] [-file <fichier_cert>]
[-keystore <keystore>] [-storepass <mot_passe_store>]
[-storetype <storetype>] [-providername <name>]
[-providerclass <provider_class_name> [-providerarg <arg>]] ...
[-providerpath <pathlist>]

-genkeypair [-v] [-protected]
[-alias <alias>]
[-keyalg <keyalg>] [-keysize <taille_clé>]
[-sigalg <sigalg>] [-dname <nomd>]
[-validity <joursVal>] [-keypass <mot_passe_clé>]
[-keystore <keystore>] [-storepass <mot_passe_store>]
[-storetype <storetype>] [-providername <name>]
[-providerclass <provider_class_name> [-providerarg <arg>]] ...
[-providerpath <pathlist>]

-genkeypair [-v] [-protected]
[-alias <alias>] [-keypass <keypass>]
[-keyalg <keyalg>] [-keysize <taille_clé>]
[-keystore <keystore>] [-storepass <mot_passe_store>]
[-storetype <storetype>] [-providername <name>]
[-providerclass <provider_class_name> [-providerarg <arg>]] ...
[-providerpath <pathlist>]

-help

-importcert [-v] [-noprompt] [-trustcacerts] [-protected]
[-alias <alias>]
[-file <fichier_cert>] [-keypass <mot_passe_clé>]
[-keystore <keystore>] [-storepass <mot_passe_store>]
[-storetype <storetype>] [-providername <name>]
[-providerclass <provider_class_name> [-providerarg <arg>]] ...
[-providerpath <pathlist>]

-importkeystore [-v]
[-srckeystore <srckeystore>] [-destkeystore <destkeystore>]
[-srcstoretype <srcstoretype>] [-deststoretype <deststoretype>]
[-srcstorepass <srcstorepass>] [-deststorepass <deststorepass>]
[-srcprotected] [-destprotected]
[-srcprovidername <srcprovidername>]
[-destprovidername <destprovidername>]
[-srcalias <srcalias> [-destalias <destalias>]
[-srckeypass <srckeypass>] [-destkeypass <destkeypass>]]
[-noprompt]
[-providerclass <provider_class_name> [-providerarg <arg>]] ...
[-providerpath <pathlist>]

-keypasswd [-v] [-alias <alias>]
[-keypass <ancien_mot_passe_clé>] [-new <nouveau_mot_passe_clé>]
[-keystore <keystore>] [-storepass <mot_passe_store>]
[-storetype <storetype>] [-providername <name>]
[-providerclass <provider_class_name> [-providerarg <arg>]] ...
[-providerpath <pathlist>]

-list [-v | -rfc] [-protected]
[-alias <alias>]
[-keystore <keystore>] [-storepass <mot_passe_store>]
[-storetype <storetype>] [-providername <name>]
[-providerclass <provider_class_name> [-providerarg <arg>]] ...
[-providerpath <pathlist>]

-printcert [-v] [-file <fichier_cert>]

-storepasswd [-v] [-new <new_storepass>]
[-keystore <keystore>] [-storepass <mot_passe_store>]
[-storetype <storetype>] [-providername <name>]
[-providerclass <provider_class_name> [-providerarg <arg>]] ...
[-providerpath <pathlist>]

naypalm 10-04-2011 05:39 PM

Awesome, thanks again! :thumbsup:

Tanga 12-13-2011 06:33 AM

Not quite sure, but does this mean create the folders java/keystore on the kindle (which is found at var/local)? I am using Windows 7, so it just shows Kindle as my Kindle location in the drive tree.

PS - Thanks for this, I am so glad to be able to do this without merging the keystores myself, most generous!

Tanga 12-13-2011 06:40 AM

Oops, just discovered I need usb networking. I am not keen, as I think I'd probably brick my kindle. Is there a bin file I can use to update?

Tanga 12-14-2011 12:09 AM

Is there a step-by-step guide to creating a bin file to update the keystores?

Cheers!

thomass 12-16-2011 07:02 PM

1 Attachment(s)
is it possible to copy this keystore file without usbnetwork hack?
ie with a sh file via launchpad hack like this one
Code:

mntroot rw
if [ -f /mnt/us/launchpad/developer.keystore ]
then
                mv /mnt/us/launchpad/developer.keystore /var/local/java/keystore/developer.keystore
fi
mntroot ro


Tanga 12-16-2011 10:43 PM

Thanks so much Thomass. I am afraid that I am not entirely sure what I should do with the files you uploaded. Sorry to ask more after what you've done. I'm guessing I don't just install the ini? Where do I put things?

thomass 12-17-2011 10:40 AM

Quote:

Originally Posted by Tanga (Post 1882094)
Thanks so much Thomass. I am afraid that I am not entirely sure what I should do with the files you uploaded. Sorry to ask more after what you've done. I'm guessing I don't just install the ini? Where do I put things?

first install launchpad hack. then copy these files+ developer.keystore file to launchpad folder which will be created after the installation of launchpad hack. then first press [ shift shift space] then press [ shift L K]

inameiname 12-21-2011 07:01 PM

Quote:

Originally Posted by thomass (Post 1882675)
first install launchpad hack. then copy these files+ developer.keystore file to launchpad folder which will be created after the installation of launchpad hack. then first press [ shift shift space] then press [ shift L K]

Thanks for the suggestion thomass. This way opens up several possibilities. I actually used your idea to make similar with the disable logging, disable indexing, and removing ads threads. While I prefer to keep the USB Hack around (especially as a way to check up on whether or not these scripts do their job), I know this will greatly benefit those who aren't comfortable enough using the USB Hack and doing it manually, line-by-line.

thomass 12-21-2011 07:58 PM

Quote:

Originally Posted by inameiname (Post 1889693)
Thanks for the suggestion thomass.

you are welcome, happy to help.

BTW: maybe this way of sh to install keystore is much better
Code:

#install merged developer keystore
#backup the old one if exist:
if [ -f /var/local/java/keystore/developer.keystore]
then
                cp -f /var/local/java/keystore/developer.keystore /mnt/us/launchpad/developer.keystore.backup
fi
#move the new one:
mntroot rw
if [ -f /mnt/us/launchpad/developer.keystore ]
then
                mv -f /mnt/us/launchpad/developer.keystore /var/local/java/keystore/developer.keystore
fi
mntroot ro


inameiname 12-21-2011 08:21 PM

1 Attachment(s)
Quote:

Originally Posted by thomass (Post 1889785)
you are welcome, happy to help.

BTW: maybe this way of sh to install keystore is much better
Code:

#install merged developer keystore
#backup the old one if exist:
if [ -f /var/local/java/keystore/developer.keystore ]
then
                cp -f /var/local/java/keystore/developer.keystore /mnt/us/launchpad/developer.keystore.backup
fi
#move the new one:
mntroot rw
if [ -f /mnt/us/launchpad/developer.keystore ]
then
                mv -f /mnt/us/launchpad/developer.keystore /var/local/java/keystore/developer.keystore
fi
mntroot ro




Thanks. I actually threw together something similar, as well as an uninstall for those who may want it. Same thing as yours. BTW, while 'mntroot rw' and 'mntroot ro' is required for some of the scripts/commands, you don't need them for this one as the '/var' folder isn't root.

keystore.ini
Code:

[Actions]

; Kindlet apps/games keystore
K I = !source /mnt/us/launchpad/keystore_install.sh
K U = !source /mnt/us/launchpad/keystore_uninstall.sh

keystore_install.sh
Code:

###### Kindlet apps/games keystore
# backup the old one if exist:
if [ -f /var/local/java/keystore/developer.keystore ]
then
        cp /var/local/java/keystore/developer.keystore /mnt/us/launchpad/developer.keystore.bkp_orig
fi
# move the new one and keep a backup of it, just in case:
if [ -f /mnt/us/launchpad/developer.keystore ]
then
        cp /mnt/us/launchpad/developer.keystore /var/local/java/keystore/
        mv /mnt/us/launchpad/developer.keystore /mnt/us/launchpad/developer.keystore.bkp
fi
exit

keystore_uninstall.sh
Code:

###### Kindlet apps/games keystore
# remove new one and its backup:
mv /var/local/java/keystore/developer.keystore /mnt/us/launchpad/
rm /mnt/us/launchpad/developer.keystore.bkp
# restore the old one if exist:
if [ -f /mnt/us/launchpad/developer.keystore.bkp_orig ]
        mv /mnt/us/launchpad/developer.keystore.bkp_orig /var/local/java/keystore/developer.keystore
fi
exit


thomass 12-21-2011 08:54 PM

Quote:

Originally Posted by inameiname (Post 1889804)
I actually threw together something similar, as well as an uninstall for those who may want it.

Thanks.

I think it may be better if you collect your all installer scripts in a new thread with links to the necessary files (ie develepor.keytore , etc) and some small descriptions. (if you have time of course)

inameiname 12-22-2011 01:05 AM

Quote:

Originally Posted by thomass (Post 1889831)
Thanks.

I think it may be better if you collect your all installer scripts in a new thread with links to the necessary files (ie develepor.keytore , etc) and some small descriptions. (if you have time of course)

Thanks for the suggestion. I thought about that, but as this thread (along with the other ones I threw an '.ini', '_install.sh', and '_uninstall.sh' together) are the threads mentioned in the main "Kindle Hacks" post: https://www.mobileread.com/forums/sho...d.php?t=128704, I figure people can best find each one of them on the appropriate link on that page, like this thread, so long as they read the entire thread and not just the first posting.

Personally, after seeing your original script, and found it to work, I created and use a 'customizations_install.sh' (and 'customizations_uninstall.sh' one too) that incorporates all of the hacks I would have normally done via USB hack. So much easier.


All times are GMT -4. The time now is 04:59 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.