Changeset 7264


Ignore:
Timestamp:
04/08/10 10:18:37 (9 years ago)
Author:
pjkersha
Message:

Script to export certificates from a Java keystore to PEM format files.

  • fixed aliases config file option
Location:
TI12-security/trunk/esg_keytool_utils
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/esg_keytool_utils/export_keystore_certs2pems.cfg

    r7263 r7264  
    2828# List of aliases corresponding to keystore certificates to export - leave out/ 
    2929# comment out this item in order to export all 
    30 #aliases=myalias1 myalias2 
     30#aliases="myalias1 myalias2" 
     31aliases="d573507a 367b75c3" 
  • TI12-security/trunk/esg_keytool_utils/export_keystore_certs2pems.sh

    r7263 r7264  
    6161fi 
    6262 
    63 # Aliases for all the stored certificates 
    64 aliases=$(keytool -list -keystore $keystore -storepass $keystore_passwd | grep trustedCertEntry|awk -F, '{print $1}') 
     63if [ -z "$aliases" ]; then 
     64    # Get aliases for all the stored certificates 
     65    aliases=$(keytool -list -keystore $keystore -storepass $keystore_passwd | grep trustedCertEntry|awk -F, '{print $1}') 
     66fi 
    6567 
    6668# Export based on alias 
Note: See TracChangeset for help on using the changeset viewer.