Chapter One:Install EJBCA

简介:

About EJBCA

EJBCA is an enterprise class PKI Certificate Authority built on J2EE
technology. It is a robust, high performance, platform independent, flexible,
and component based CA to be used stand-alone or integrated in other J2EE
applications.
 
EJBCA is an enterprise class PKI, meaning that you can use EJBCA to build a
complete PKI infrastructure for your organization. If you only want to issue a
few single certificates for testing, there are probably options that will get
you started quicker, but if you want a serious PKI we recommend EJBCA.
 
How to install EJBCA

Firstly, you have to download those tools:
1.JDK
Here I use JDK1.6.0_06
2.JCE
of course, this version should fit to JDK
3.JBOSS
Jboss is a default Ejbca application server, so here i use JBoss-5.0.1.GA-
jdk6.zip
4.Ant
Ant is a java-based build tool, ejbca is devloped in java so you should use it,
here i use apache-ant-1.7.1-bin.zip
5.Mysql
Of course, mysql is one of databse chooses, you can use others. Here i use
Mysql 5
6.EJBCA
In EJBCA.org, the latest version is 3.8.2, but it not fit to current tools, so
i use ejbca_3_8_1.zip
Note:
The version about i just say must be deal, you'd better not change for you can
follow and get a success!
 
Second, let's install them.
before install them, you should prepare a directory to contain them, for
example, i set path to E:\Java_dev.
1.install JDK1.6
Install it to E:\Java_dev\JDK1.6.0
2.install JCE
Copy this zip's jar to E:\Java_dev\JDK1.6.0\jre\lib\security and c:\program
Files\Java\jre6\lib\security.
3.install mysql
if you download an unintall mysql.zip, ok you just have to unzip it to
E:\Java_dev\mysql-5.1.32-win32, after that, make sure you have create a
database named ejbca successfully. 
4.install jboss, ant and ejbca
Unzip them to independent directory, such as E:\Java_dev\jboss-5.0.1.GA,
E:\Java_dev\apache-ant-1.7.1 and E:\Java_dev\ejbca_3_8_1
Note:
After you unzip jboss, you have to copy mysql5's jar(mysql-connector-java-
5.1.7-bin.jar) to E:\Java_dev\jboss-5.0.1.GA\server\default\lib.
 
Third step is set environment variables
1.JAVA_HOME
JAVA_HOME=E:\Java_dev\JDK1.6.0;
2.JBOSS_HOME
JBOSS_HOME=E:\Java_dev\jboss-5.0.1.GA
3.ANT_HOME
ANT_HOME=E:\Java_dev\apache-ant-1.7.1
4.ANT_OPTS
ANT_OPTS = -Xmx640m
5.PATH
PATH = %JAVA_HOME%\BIN;%JBOSS_HOME%\BIN;%ANT_HOME%\bin;
6.CLASSPATH
CLASSPATH= %JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib;
 
Fourth, set some setting of EJBCA
1.In effect ejbca properties
Enter directory  %EJBCA_HOME%\conf\, change ejbca.properties.sample to
ejbca.properties, web.properties.sample to web.properties and
database.properties.sample to database.properties
2.In effect database type to ejbca
Open file database.properties, set some setting of database to mysql, detail
like this:
database.name=mysql
datasource.mapping=mySQL
database.url=jdbc:mysql://127.0.0.1:3306/ejbca?characterEncoding=UTF-8
database.driver=com.mysql.jdbc.Driver
database.username=root
database.password=1234
Note:
If your mysql
 
Five, compile and install ejbca
'CMD' enter command line, enter your ejbca_home, here is
E:\Java_dev\ejbca_3_8_1
1.compile ejbca
enter 'ant bootstrap'
2.start jboss
enter 'run.bat'
3.intall ejbca
enter 'ant install'
4.stop jboos
close jboss window.
5.deploy ejbca
enter 'ant deploy'
Note:
If failed, please check your 'path' is ok?  Or your version are fit each other?
 
Six, install CA
If those setp is pass, ok, congratulation!
Enter %EJBCA_HOME%\p12 directory, double click the file named 'superadmin.p12',
the password is 'ejbca', enter it then you will be ok.
 
Seven, Check your install success or not
1.'CMD' enter command line, start jboss with 'run.bat'
2.Open IE7 or some others, enter  [url]https://localhost:8443/ejbca/adminweb[/url], go!
when you meet the pop-up message-box, choose ok then go on, soon you will see
the EJBCA Management Page. And it's mean you have install EJBCA_3_8_1 success!
 
Ok, let's do it by yourself, good luck!
If you have any question, please contact me by MSN:danni-505@hotmail.com,
thanks for your reading.



    本文转自danni505 51CTO博客,原文链接:http://blog.51cto.com/danni505/146948,如需转载请自行联系原作者


相关实践学习
每个IT人都想学的“Web应用上云经典架构”实战
本实验从Web应用上云这个最基本的、最普遍的需求出发,帮助IT从业者们通过“阿里云Web应用上云解决方案”,了解一个企业级Web应用上云的常见架构,了解如何构建一个高可用、可扩展的企业级应用架构。
MySQL数据库入门学习
本课程通过最流行的开源数据库MySQL带你了解数据库的世界。   相关的阿里云产品:云数据库RDS MySQL 版 阿里云关系型数据库RDS(Relational Database Service)是一种稳定可靠、可弹性伸缩的在线数据库服务,提供容灾、备份、恢复、迁移等方面的全套解决方案,彻底解决数据库运维的烦恼。 了解产品详情: https://www.aliyun.com/product/rds/mysql 
相关文章
|
机器学习/深度学习 人工智能 边缘计算
24/7全时守护:AI视频监控技术的深度实现与应用分享
本文深入解析了AI视频监控系统在车间安全领域的技术实现与应用,涵盖多源数据接入、边缘计算、深度学习驱动的智能分析及高效预警机制,通过具体案例展示了系统的实时性、高精度和易部署特性,为工业安全管理提供了新路径。
4848 7
免费延保四年!Anolis OS 7 延保计划通知
在 2024 年 6 月 30 日 EOL 的基础上为用户提供免费四年时间的 ELS 延保服务,即延保至 2028 年 6 月 30 日。延保结束后,龙蜥社区将停止对 Anolis OS 7 的维护更新及技术支持。
免费延保四年!Anolis OS 7 延保计划通知
|
编解码 安全 Java
【软件测试】进阶篇 -- 详解
【软件测试】进阶篇 -- 详解
|
前端开发 数据可视化 编译器
嵌入式 QT Creator使用
嵌入式 QT Creator使用
|
前端开发 算法
【我的前端】CSS启示录:CSS写出超级美观的阴影效果
在我看来,最好的网站和web应用程序对它们具有切实的"真实”质量。实现这种质量涉及很多因素,但阴影是一个关键因素。
【我的前端】CSS启示录:CSS写出超级美观的阴影效果
|
存储 前端开发 JavaScript
【前端应该掌握 web3】入门系列 - 为什么说前端更适合学 web3
【前端应该掌握 web3】入门系列 - 为什么说前端更适合学 web3
869 0
|
数据挖掘
评测哪家静态IP代理更适合购买?
在当今的网络时代,静态IP代理已经成为了许多企业和个人用户进行网络爬取、数据挖掘、反欺诈等操作的必备工具。
评测哪家静态IP代理更适合购买?
|
Ubuntu Unix Linux
Windows 10变身开发者利器:内置Linux内核,轻松查看Linux子系统文件
未来我们可以在Windows里访问Linux文件了。微软此前曾透露计划在Windows 10中发布完整的Linux内核,现在该公司计划将Linux文件访问完全集成到内置的文件资源管理器中。在文件资源管理器的左侧导航窗格中将提供一个新的Linux图标,可为Windows 10中安装的所有发行版提供对根文件系统的访问。
681 0
Windows 10变身开发者利器:内置Linux内核,轻松查看Linux子系统文件
项目中使用了个quartz包,启动时提示Quartz version update check failed
项目中使用了个quartz包,启动时提示Quartz version update check failed
330 0
|
SQL Oracle 关系型数据库
Oracle 连接玩我!ORA-12514及ORA-28547错误解决
安装了Oracle11g整整数据库,以前正Oracle都是安装好修改配置NET Manager就可以连接了。可是今天出现了一点小意外,这里总结一下。 (一) 安装检查的问题   在Win7中安装Oracle11g 企业版,在安装的过程中出现一个问题: Environment varia...
2394 0