Install EJBCA On Windows XP Pro SP2.
Here is my process. The specific settings of environment variables, according to the actual situation.
1. Prepare the following software: - J2SDK-1_4_2, JCE_POLICY_1.4.2- mysql-4.0.15, myodbc-3.51.06, MySQL-Connector-Java-3.1.6- JBoss-3.2.6- EJBCA_3_0_4- Apache-Ant-1.6.2
URL http://gd.tuwien.ac.at/db/mysql/downloads/connector-j/mysql-connector-java-3.1.6.zipurl http://umn.dl.sourceforge.net/sourceforge/jboss/ JBoss-3.2.6.zip
2. - Install J2SDK. - Java_Home = N: /J2SDK1.4.2, ClassPath = N: /J2SDK1.4.2/JRE/bin; N: /J2SDK1.4.2/JRE/LIB - Covering several files of jce_policy_1.4.2 to% JRE PATH% / LIB / security, mine is F: / program files / java / j2re1.4.2 / lib / security, the F disk is a system disk. Note, not J2SDK installation path N: /J2SDK1.4.2/JRE/LIB/security 3. - Install and configure mysql, ODBC driver. The specific process is omitted. - Create Database EJBCA. Configure the username and password. 4. - JBoss, Ant, EJBCA. All are directly extracted to E: / - Ant_home = E: /Apache-ant-1.6.2, jboss_home = E: /JBOSS-3.2.6, Path Add "E: / Apache-ANT- 1.6.2 / bin "5. - COPY MySQL-Connector-Java-3.1.6-bin.jar E: /JBOSS-3.2.6/server/default/lib
- Delete all HSQL * .xml files under E: /JBOSS-3.2.6 / - Execute Ant Replaceds in E: / EJBCA. Enter mysql, Java: / EJBCADS - perform Ant Deploy 6 in turn according to the prompt. - Copy E: /ejbca/doc/mysql-ds.xml e: /jboss-3.2.6/server/default/deploy, find a few of mysql-ds.xml and modify:
8. Perform install in E: / EJBCA. If the host of the host of CA does not exist, you can modify it at% system% / system32 / drivers / etc / hosts, such as adding a line 127.0.0.1 Caserver.mycompany.com.cn
9. Import the P12 certificate. Located in the E: / EJBCA / P12 directory. 10. Restart JBoss. 11. Test the Runtest.cmd test. In addition to a Swedechar error, the rest are passed. Note that this test will leave garbage in CA, so don't use it in the actual system, or clear the EJBCA database, then execute from 7. Http: // localhost: 8080 / EJBCA / INDEX.HTML EJBCA home page. HTTPS: // localhost: 8443 / EJBCA / AdminWeb Access Management page. User information is RA responsible for input. The user submits the Web page of the application information, and EJBCA is not available. During the installation, refer to http://java.mblogger.cn/fy/posts/7691.aspx to thank the author thanks to the author of the www.infosecurity.org.cn forum Aranjuez, Shaoshao provides assistance