How to export and import keys in ant? -


ant has build-in task "genkey" used generate key , put desired keystore. if need export key keystore , import one?

it seems there no build-in ant task perform operations (very strange). deal export , import 1 should use generic exec task executes shell command. should used export:

<exec executable="keytool" failonerror="true">     <arg value="-exportcert"/>     <arg line="-keystore mykeystore.jks"/>     <arg line="-alias mykey"/>     <arg line="-storepass ohwowthisiscoolpassword"/>     <arg line="-file mykey.cer"/> </exec> 

similar import.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -