|
From: Stephane B. <ste...@be...> - 2004-07-01 12:43:59
|
I plan to commit in the next few hours an hopefully improved install
that keep manual interaction to the strict minimum.
That should help tremendoulsy development and first time install (at
least I hope so)
That requires quite a good number of changes to the process, but here is
the step by step deploy guide.
This will of course be added to the docs but it is still quite rough on
the edges
---- ----------
1) Copy .ejbca.properties.sample to .ejbca.properties
2) Set the path to your JBoss home directory 'jboss.home' in
.ejbca.properties
3) Customize the database if needed but best thing is to keep the
default as it is,
it will use the JBoss embedded HSQLDB and everything will be easier for
you.
4) Customize the CA properties if you need to do so.
(Please guys, review the name of the properties to help me come up with
something more meaningful)
5) Open another console (terminal) and type 'ant j2ee:run' to start JBoss.
4) Switch to you other console and type 'ant -f bin/cli.xml ejbca:bootstrap'
it will compile, jar, war, ear everything and deploy it JBoss, you
should see JBoss
picking up all the changes and deploying the ear
5) Type 'ant -f bin/cli.xml ejbca:install' it will generate all
certificate, keys, etc..
You will find all keys in ${ejbca.home}/p12. (do not delete those files !)
- tomcat.jks is for the servlet container (don't bother with it)
- superadmin.p12 should be imported in your browser, that's your
certificate.
6) Stop JBoss (ctrl +c or whatever)
7) type 'ant deploy', this will deploy everything again and configure
the servlet
container with the keystore file. (this is why we needed to stop the
container)
8) Start JBoss again and go to http://localhost:8080/ejbca/
NB: You will also notice that there is a j2ee:debug target, it will
start JBoss in debug mode. Just fire up your debugger to the default
transport and address display on your console and you're set. You can
now debug your application.
|