Private keys can be removed from the key store using the -remove command (-r for short). Consider a key labelled abc in the keystore.
c:\>keytool –list abc Symbian KeyStore Manipulation Tool Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. Key imported successfully Algorithm: RSA Size: 512 bits Usage: Pkcs15 Sign Code: 0x4 Owner: 0x101f7e95 User: 0x101f7e95 Access Flags: Extractable ID: 4d 15 e9 01 … Label: abc Native: Yes Start Date: not set End Data: not set
You can remove the key using the following command:
c:\>keytool –remove abc Symbian KeyStore Manipulation Tool Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. Key deleted successfully.
Note: keytool can only remove keys imported using the its or the emulator's keystore UI. Other keys will have a different owner and cannot, therefore, be removed in this fashion.
The remove command supports the “*” and “?” wildcards on key labels. All the keys whose labels match the given pattern will be removed. For example, c:\>keytool –r *rsa* will remove all the keys whose label contains the string “rsa”.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.