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
Post a Comment