#!/bin/sh
KEYTOOL=keytool
CERT=tptpSample.cer
KEYSTORE=tptpSamplekeystore
PASSWORD=password

rm -f $CERT
rm -f $KEYSTORE
	
$KEYTOOL -genkey -alias sample -keyalg RSA -sigalg MD5withRSA -dname "CN=Sample, OU=Sample, O=Sample, C=US" -validity 3650 -keypass $PASSWORD -storetype jks -keystore $KEYSTORE -storepass $PASSWORD
$KEYTOOL -export -alias sample -file $CERT -keystore $KEYSTORE -storepass $PASSWORD
