@rem *********************************************************************
@rem Copyright (c) 2006, 2009 IBM Corporation and others.
@rem All rights reserved.   This program and the accompanying materials
@rem are made available under the terms of the Eclipse Public License v1.0
@rem which accompanies this distribution, and is available at
@rem http://www.eclipse.org/legal/epl-v10.html
@rem $Id:$
@rem
@rem Contributors:
@rem IBM - Initial API and implementation
@rem *********************************************************************
@rem
@setlocal
@set KEYTOOL=keytool
@set CERT=tptpSample.cer
@set KEYSTORE=tptpSamplekeystore
@set PASSWORD=password

@del /f %CERT%
@del /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%
@endlocal
