question: static void createPasswordFiles ( String basedir , String keystorePwd , String keyPassword ) throws IOException { writeContent ( basedir + "/.keypass" , keyPassword ) ; writeContent ( basedir + "/.storepass" , keystorePwd ) ; copyCtxFile ( "/WEB-INF/template/keystore" , "keystore.jks" , basedir ) ; copyCtxFile ( "/WEB-INF/template/keystore" , "keystore.jceks" , basedir ) ; AMKeyProvider jceks = new AMKeyProvider ( true , basedir + "/keystore.jceks" , "changeit" , "JCEKS" , "changeit" ) ; AMKeyProvider jks = new AMKeyProvider ( true , basedir + "/keystore.jks" , "changeit" , "JKS" , "changeit" ) ; jceks . setKey ( keystorePwd , keyPassword ) ; jks . setKey ( keystorePwd , keyPassword ) ; try { jceks . store ( ) ; jks . store ( ) ; } catch ( CertificateException | NoSuchAlgorithmException | KeyStoreException e ) { throw new IOException ( "Can't update keystore password" , e ) ; } }
target:  Create the storepass and keypass files