Step 1. Create a self signed certificate

Use the keytool command for generating a certificate as follows: /securonix/securonix_product/jdk1.7.0_60/bin/keytool -genkey -alias sxmr2_app -keyalg RSA -keystore key.keystore -keysize 2048 -ext san=ip:150.160.8.17

Finally the IP address of the server is used in the last part san=ip:150.160.8.17

You will be required to provide a few details such as first name and last name among other questions. Fill them as required by the server. Note that the first name and last name must be the IPaddress of the server.

Step 2. Create a certrequest

/securonix/securonix_product/jdk1.7.0_60/bin/keytool -certreq -alias sxmr2_app -file sxmr2.csr -keystore key.keystore

Step 3. Export the Certificate that has been created

/securonix/securonix_product/jdk1.7.0_60/bin/keytool -export -alias sxmr2_app -file Securonixhost_Master2.cer -keystore key.keystore

Step 4. Add the Certificate into the keystore

/securonix/securonix_product/jdk1.7.0_60/bin/keytool -import -file /securonix/securonix_product/tomcat-7.0.securonix/certs/Securonixhost_Master2.cer -alias sxmr2_app -keystore /securonix/securonix_product/jdk1.7.0_60/jre/lib/security/cacerts

Step 5. Use the keystore in tomcat Finally under tomcat/conf/server.xml - use the keystore imported and the same password key.keystore

asked 09 Oct '15, 12:58

Kayzadv's gravatar image

Kayzadv
2516
accept rate: 0%


In case you want to use alias to generate certificates, use this in Step 1:

/securonix/securonix_product/jdk1.7.0_60/bin/keytool -genkey -alias sxmr2_app -keyalg RSA -keystore key.keystore -keysize 2048 -ext san=dns:alias,ip:IPAddress

link

answered 21 Sep '16, 12:14

Avinash%20Pali's gravatar image

Avinash Pali
252
accept rate: 0%

In case you want to use Hostname instead of IPaddresses, Please use the following command in Step 1:

/securonix/securonix_product/jdk1.7.0_60/bin/keytool -genkey -alias sxmr2_app -keyalg RSA -keystore key.keystore -keysize 2048 -ext san=dns:hostname.

Under First Name , Last Name , again use the same hostname.

link

answered 18 Nov '15, 12:16

Kayzadv's gravatar image

Kayzadv
2516
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6
×3
×1

Asked: 09 Oct '15, 12:58

Seen: 1,133 times

Last updated: 21 Sep '16, 12:14