AM8.1 Admin SDK Environment Setup Guide
2 years ago
Originally Published: 2015-09-17
Article Number
000062082
Resolution

 

Step by Step, setup AM8.1 Admin SDK Environment in Eclipse

Version 2  (2015/09/17)

 

 

 1.  Download Java SDK, install. (Java 6 and above)

http://www.oracle.com/technetwork/java/javaee/downloads/index.html

User-added image

 

2.  Download Eclipse, install.

http://www.eclipse.org/downloads/

 User-added image

 

3.  Export server root certificate, import it to Client JKS

1>     cd /opt/rsa/am/appserver/jdk/jre/bin

2>     ./keytool -export -keystore /opt/rsa/am/server/security/trust.jks -file am_root.cer -alias rsa-am-ca (no password)

User-added image

User-added image

 

3>     Download "am_root.cer". Basically the location to put the file is not restricted. For me, I just put it in the JRE bin folder.

User-added image

 

 

4>     Alternatively, we can export the certificate via Internet Explorer.

User-added image

 

5>     Import "am_root.cer" to local JKS. The location for local JSK is not restricted as well.

( I just put it in the SDK\lib\java. )

keytool -import -keystore "<SDK> \lib\java\trust.jks" -storepass cacerts_keystore_password -file am_root.cer -alias rsa_am_ca -trustcacerts

User-added image

User-added image

 

4.  Replace Java Cryptography Extension Unlimited Strength Jurisdiction Policy Files

1>     Download the file here: (For difference version JDK please download different version of JCE files accordingly)

http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html

2>     Replace the existing ones in JRE/lib/security/

User-added image

User-added image

 

 

5.  Setup SDK(sample project) in Eclipse

1>     Create a new Project

User-added image

2>     Create from a "build.xml" file

User-added image

User-added image

User-added image
 

3>     Configure Build Path

User-added image

4>     Add external Libraries, add all libs under SDK/lib/java

User-added image

User-added image
 

5>     Import "config.properties"

User-added image

User-added image

 User-added image

 

 

6>     Edit "config.properties"

1>     In the ssh console issue:

 rsaadmin@marge:/opt/rsa/am/utils> ./rsautil manage-secrets --action list

User-added image

2>     In the eclipse edit the "config.propertites"
User-added image
 ( If it’s for web service please also change)
User-added image
 

7>     Modify launch parameters
User-added image

User-added image

User-added image

User-added image

User-added image
 

 

-Dweblogic.security.SSL.trustedCAKeyStore="<JKS>" (Please use quote if there’s space in the file path)
-Dbea.home="<your SDK home>\sdk\lib\java"
-Dsun.lang.ClassLoader.allowArraySyntax=true

 

 

8>     Test the code.

User-added image