EJBCA installation on Linux

Source: Internet
Author: User

Install on Windows for testing purposes, installed on a Linux server because the CN used IP needs to be re-installed .... Again, here are some things to watch out for


I. Documents required

The contents of the preparation will not be said, refer to my previous "EJBCA on Windows Installation", need to download the above provides


Ii. Conditions of preparation1. JBoss Configuration1.1. JBoss Port number ConfigurationAs the default port for server JBoss 8080 and 8009 are definitely occupied, modify the port number of JBoss. Because of the different versions of JBoss, the modified locations are not the sameJboss-5.1.0ga Modify the location is: Jboss-5.1.0.ga\server\default\deploy\jbossweb.sar The following service.xml file, need to modify the content: 8080 and 8009 ports
     <!--A http/1.1 Connector on port 8080--      <connector protocol= "http/1.1" port= "8080" address= "${jboss.bind . Address} "                connectiontimeout=" 20000 "redirectport=" 8443 "/>      <!--A AJP 1.3 Connector on port 8009-->< C4/><connector protocol= "ajp/1.3" port= "8009" address= "${jboss.bind.address}"         redirectport= "8443"/>

1.2. JBoss-Beans.XML 配置JBOSS  :修改jboss下面的目录中的文件内容:

Jobss_home/Server/default/deployers/Jbossws.Deployer/META-INF/JBoss-Beans.XML
<Property Name="Webservicehost">${JBoss.Bind.Address}</ Property>
Otherwise, when using code to access the WSDL, it will appear:
clienttransportexception: The server sent an HTTP status code 302:moved temporarily exception

1.3. Add the required jar for MySQL driver package and EJBCACopy the Mysql-connector-java-5.1.7-bin.jar in the Mysql-connector-java-5.1.7.zip to the%jboss_home%/server/default/lib directory; Copy the%ejbca_home%/lib/bc*.jar to%jboss_home%server/default/lib (otherwise the JCE may appear in JBOSS startup Window cannot Authenticate the provider BC error )

1.4, JBoss Start-upStart command sh run.sh-b 0.0.0.0 (bind all network cards, I am not sure if the address= "${jboss.bind.address} with Service.xml configuration file has a relationship, have a look down), after the boot successful access, http://x Xx.xxx.xxx.xx:port If a JBoss welcome interface is present, the boot is no problem. If the boot time does not bind all the network card (does not enter the B 0.0.0.0) will appear the access situation, because (look down backstage), he launches the specified is 127.0.0.1 only locally accessible


2, EJBCA configuration ejbca_4_0_10\conf2.1 Database.propertiessave%ejbca_home%/conf/database.properties.sample Copy as%ejbca_home%/conf/database.propertiesIt's mostly information about the database (just get rid of the comments below): database.name=mysql Datasource.mapping=mysql database.url=jdbc:mysql://127.0.0.1:3306/ejbca?characterencoding=utf-8
< Span style= "White-space:pre" > database.driver=com.mysql.jdbc.driver
< Span style= "White-space:pre" > database.username=root
Database.password=root
2.2 Ejbca.propertiessave%ejbca_home%/conf/ejbca.properties.sample Copy as%ejbca_home%/conf/ejbca.properties
The following marked Red section must remember to change, especially the first, otherwise, the startup time can not find the JBoss directory # application Server home directory used during development. The path can not be end with a slash or backslash.
# Default: $APPSRV _home
Appserver.home=/home/ecity/ca_engine/jboss-5.1.0.ga
#appserver. Home=/home/ejbca/oracle/middleware
#appserver. Home=/opt/ibm/websphere/appserver
#appserver. home=${env. Appsrv_home}


#ejbca. productionmode=true
#ejbca. Productionmode=false
Ejbca.productionmode=ca
#ejbca. PRODUCTIONMODE=OCSP
2.3web.properties

save%ejbca_home%/conf/web.properties.sample, copy to%ejbca_home%/conf/web.properties



Third, installation
Installation steps are the same as under Wiindows, first turn off JBoss, and compile EJBCA in the EJBCA directory:Ant Bootstrap;start JBoss again, in the JBoss Bin directory: sh run.bat-b 0.0.0.0;then to the EJBCA directory to install,:ant Install(the installation will generate P12 files, such as no this file, check the previous steps for missing items, and remember to configure the CA information when CN use domain name to do not use IP, otherwise there will be a lot of problems after the development) To stop JBoss deployment under EJBCA:Ant Deploy


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.