ant renew-keystore

Help
2012-11-28
2013-02-18
  • Plamen Gribachev

    Hi Friends,
    I've tried to renew tomcat's ssl certificate. I've read "http://www.ejbca.org/userguide.html#SSL certificate expire"  and try following:


    A small convenience ant target is present which can simplify the proceess and save some typing (it's running the above three ejbca.sh commands in succession):
    ant renew-keystore
    cp p12/tomcat.jks $APPSRV_HOME/server/default/conf/keystore.jks
    Restart JBoss.


    But after I executing "ant renew-keystore" I receive following error:

    # ant renew-keystore
    Buildfile: /opt/ejbca_4_0_12/build.xml
          No custom changes to merge.
          appserver.home: /opt/jboss
          appserver.type: jboss

    BUILD FAILED
    Target "renew-keystore" does not exist in the project "ejbca".


    Please help me to resolve this problem!

    Best Regards,
    Plamen

     
  • Anonymous - 2012-11-28

    Hi,
    I did this with 4.0.12

    C:\primekey\ejbca>ant renew-keystore
    Buildfile: C:\primekey\ejbca\build.xml
          Merging available external modifications from C:primekeyejbca-custom (unless done previously).
          Copying 1 file to C:\primekey\ejbca
          appserver.home: /jboss-5.1.0.GA
          appserver.type: jboss

    inputDeployPasswords:
         skipping input as property java.trustpassword has already been set.
         skipping input as property httpsserver.password has already been set.

    renew-keystore:

    ejbca:renew-keystore:
          New status for user tomcat is 10
          Setting clear text password for user tomcat
          batch tomcat
          Generating keys in directory C:primekeyejbcap12.
          Generating keys for tomcat.
          Created Keystore for 'tomcat'.
          New user generated successfully - tomcat.

    BUILD SUCCESSFUL
    Total time: 5 seconds

    C:\primekey\ejbca>

    Cheers,
    Anders
    tech support

     
  • Plamen Gribachev

    Hi Anders,
    I did not this renew with 4.0.12
    I'm usign jboss 5.1 too. I'm using ant 1.8.2.
    What have I done wrong?

    Regards,
    Plamen

     
  • Anonymous - 2012-11-28

    Well, my EJBCA/build.xml does contain a target "renew-keystore".
    How about your?

    Cheers
    Anders

     
  • Plamen Gribachev

    Anders,
    I've ckecked that my EJBCA/build.xml does not contain a target "renew-keystore".
    My ejbca distribution ejbca_4_0_12.zip is from 18.09.2012.

    Plamen

     
  • Tomas Gustavsson

    Renew-keystore is something that will apear in EJBCA 4.0.13. A bit prematurely pushed to the docs at ejbca.org.

     

Log in to post a comment.