Skip to main content
FortiKoala
Staff
Staff
October 1, 2018

Technical Note: Create and import self-signed SSL certificates (centOS 5)

  • October 1, 2018
  • 0 replies
  • 997 views
Description
Create and import self-signed SSL certificates (centOS 5).


For appliances on the centOS 7 platform, see Cookbook Recipe Install SSL Certificates in Analytics Server in the Fortinet Document Library for instructions.



Solution
1.  Login to Analytics CLI as root and type
cd /bsc/services/jboss

2.  Create the keystore file. Type
keytool -genkey -alias bradford-analytics1 -keyalg RSA -keystore ./keystore.jks

3.  Create the certificate. Type
keytool -export -alias bradford-analytics1 -storepass cchaos -file ./server.cer -keystore ./keystore.jks

4.  Import the certificate to the keystore. Type
keytool -import -v -trustcacerts -alias bradford-analytics1 -file ./server.cer -keystore ./cacerts.jks -keypass cchaos -storepass cchaos

5.  Restart the jboss server with the following command:
/etc/init.d/jboss restart

6.  Type
reboot