EJBCA安装步骤

经过几天的努力终于把EJBCA安装上了,下面是我的安装文档,希望能给又需要的人有所帮助。
运行环境(Windows2003Server)
JDK 1.6.x
Unlimited Strength Jurisdiction Policy Files for your JDK
以上两个软件下载地址:http://java.sun.com/javase/downloads/index.jsp
JBoss-5.0.1.GA-jdk6 (注意请下载jboss-5.0.1.GA-jdk6.zip)     
http://www.jboss.org/jbossas/downloads/
EJBCA 3.8.1      
http://www.ejbca.org/download.html
apache-ant-1.7.1   
http://ant.apache.org/
MySQL 5.1        
http://dev.mysql.com/downloads/mysql/5.1.html
mysql-connector-java-5.1.7.zip     
http://download.softagency.net/MySQL/Downloads/Connector-J/


安装步骤:

1.安装J2EE,mysql 。解压ejbca,jboss,apache-ant,connector,jce_policy。

2.设置环境变量

JAVA_HOME = C:\ca\jdk
JBOSS_HOME = C:\ca\jboss
ANT_HOME = C:\ca\apache-ant

PATH = %JAVA_HOME%\BIN;%JBOSS_HOME%\BIN;%ANT_HOME%\bin;

CLASSPATH= %JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib;

将无限加密包 jce_policy 的几个.jar文件覆盖到 %JAVA_HOME%jre\lib\security ,覆盖原来的.jar文件下就行。

3.安装mysql,用户名和密码均为root,创建数据库ejbca(以后设置ejbca和SQL链接时,用这个密码)

*将mysql-connector-java-5.1.7解压缩后,将其中的mysql-connector-java-5.1.7-bin.jar拷贝到了%JBOSS_HOME%\server\default\lib目录下

将%EJBCA_HOME%\conf\ejbca.properties.sample  复制保存为    %EJBCA_HOME%\conf\ejbca.properties

将%EJBCA_HOME%\conf\web.properties.sample,  复制保存为    %EJBCA_HOME%\conf\web.properties

将%EJBCA_HOME%\conf\database.properties.sample复制保存为  %EJBCA_HOME%\conf\database.properties

并修改如下 (下文中没有'#'的几行在原文件中是有'#',修改就是把'#'去掉)

# Default: hsqldb
database.name=mysql
# The datasource mapping selected for deployment.
# The J2EE server needs to be configured with the appropriate datasource mapping.
# For JBoss this maps to a setting in standardjbosscmp-jdbc.xml and must match the database chosen above.
# All supported mappings are defined below, others can easily be added
# Default: Hypersonic SQL
datasource.mapping=mySQL

# Database connection url.
# This is the URL used to connect to the database, used to configure a new datasource in JBoss.
# Default: jdbc:hsqldb {jboss.server.data.dir}${/}hypersonic${/}localDB
database.url=jdbc:mysql://127.0.0.1:3306/ejbca?characterEncoding=UTF-8

# JDBC driver classname.
# The J2EE server needs to be configured with the appropriate JDBC driver for the selected database
# Default: org.hsqldb.jdbcDriver
database.driver=com.mysql.jdbc.Driver

# Database username.
# Default: sa (works with hsqldb)
database.username=root

# Database password.
# Default: (blank works with hsqldb)
database.password=root
4.cmd到%EJBCA_HOME%目录下,运行ant bootstrap

5.运行run.bat启动jboss控制台
6.cmd到%EJBCA_HOME%目录下,运行ant install (安装会生成p12文件,如无此文件,检查前几步是否有漏项)
7.停止JBOSS,%EJBCA_HOME%目录下,运行ant deploy
8.在IE的”工具>Internet选项>内容>证书“中”导入“证书superadmin.p12,位置在C:\ca\ejbca\p12。为私钥键入密码:ejbca。点击"下一步",安装证书。



以上就是我自己安装EJBCA时整理的文档。
引用:
http://ananchina.bokee.com/viewdiary.10245357.html
http://job2job.blog.163.com/blog/static/1416633120071162154863/

你可能感兴趣的:(java,mysql,jboss,ant,HSQLDB)