source: TI12-security/trunk/esg_keytool_utils/export_keystore_certs2pems.cfg @ 7268

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/esg_keytool_utils/export_keystore_certs2pems.cfg@7268
Revision 7268, 691 bytes checked in by pjkersha, 11 years ago (diff)

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

  • default to all aliases in config file
Line 
1#!/bin/bash
2#
3# Script to export all the certificates from Java key store to PEM format
4#
5# A configuration file is required of the form:
6#
7#
8# @author P J Kershaw 04/08/2010
9#
10# @copyright: (C) 2010 STFC
11#
12# @license: BSD
13#
14# $Id$
15
16# file path for Java Key store to be exported from
17keystore="./keystore"
18
19# Java Key store password.  If omitted, it will be prompted for from stdin
20keystore_passwd=123456
21
22# Directory for storage of temporary DER files used by keytool
23tmp_dir=.
24
25# Export directory for output PEM files
26export_dir=.
27
28# List of aliases corresponding to keystore certificates to export - leave out/
29# comment out this item in order to export all
30#aliases="myalias1 myalias2"
Note: See TracBrowser for help on using the repository browser.