Skip Headers

Oracle® Health Sciences Information Gateway CONNECT Gateway and Adapter Installation and Configuration Guide Release 2.0.1 E37024-02 |
Home | Book List | Contents | Index | Contact Us

Previous | Next
| PDF · Mobi · ePub

# D Examples for Setting up Oracle Health Sciences Information Gateway CONNECT

This appendix contains the following topics:

- Environment Settings

- Creating and Importing a Self-Signed Certificate

## D.1 Environment Settings

### D.1.1 Example GlassFish Directories

GlassFish Home

`/home/hiauser/SUNWappserver`

GlassFish Domain Directory

`/home/hiauser/SUNWappserver/domains/domain1`

GlassFish NHIN Config Directory

`/home/hiauser/SUNWappserver/domains/domain1/config/nhin`

Log Directory

`/home/hiauser/SUNWappserver/domains/domain1/logs/`

GlassFish Bin Directory

`/home/hiauser/SUNWappserver/bin`

### D.1.2 Example GlassFish Commands

Environment Variables

    AS_HOME=/home/hiauser/SUNWappserver
    JAVA_HOME=/home/common/java/jdk1.7.0
    JAVA_VENDOR=Sun

    $ cd /home/hiauser/SUNWappserver/bin
    $ asadmin start-domain domain1
    $ asadmin stop-domain domain1

### D.1.3 Example WebLogic Directories

WebLogic Home

`/home/hiauser/Oracle/Middleware`

WebLogic Server Directory

`/home/hiauser/Oracle/Middleware/wlserver_10.3`

WebLogic Domain Directory

`/home/hiauser/Oracle/Middleware/user_projects/domains/domain1`

WebLogic NHIN Config Directory

`/home/hiauser/Oracle/Middleware/user_projects/domains/domain1/config/nhin`

Demo Certificate Directory

`/home/hiauser/Oracle/Middleware/wlserver_10.3/server/lib/`

Log Directory

`/home/hiauser/Oracle/Middleware/user_projects/domains/domain1/servers/AdminServer/logs/`

WebLogic Bin Directory

`/home/hiauser/Oracle/Middleware/user_projects/domains/domain1/bin`

### D.1.4 Example WebLogic Commands

Environment Variables

    MW_HOME=/home/hiauser/Oracle/Middleware
    JAVA_HOME=/home/common/java/jdk1.7.0
    JAVA_VENDOR=Sun

    $ cd /home/hiauser/Oracle/Middleware/user_projects/domains/domain1/bin
    $ startWebLogic.sh
    $ stopWebLogic.sh

### D.1.5 Example GlassFish /home/hiauser/.bashrc

    # .bashrc

    # Source global definitions
    if [ -f /etc/bashrc ]; then
            . /etc/bashrc
    fi

    # User specific aliases and functions
    umask 027

    # User specific environment and startup programs
    JAVA_HOME=/home/common/java/jdk1.7.0
    ANT_HOME=/home/common/ant/apache-ant-1.8.2
    AS_HOME=/home/hiauser/SUNWappserver
    JAVA_VENDOR=Sun

    AS_SERVER_DIR=$AS_HOME
    AS_DOMAIN_DIR=$AS_HOME/domains/domain1

    PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:.:$AS_HOME/bin:$ANT_HOME/bin

    export PATH JAVA_HOME ANT_HOME AS_HOME AS_SERVER_DIR AS_DOMAIN_DIR

    alias start="sh /home/hiauser/SUNWappserver/bin/asadmin start-domain domain1"
    alias stop="sh /home/hiauser/SUNWappserver/bin/asadmin stop-domain domain1"
    alias log="tail -f /home/hiauser/SUNWappserver/domains/domain1/logs/server.log"

### D.1.6 Example WebLogic /home/hiauser/.bashrc

    # .bashrc

    # Source global definitions
    if [ -f /etc/bashrc ]; then
            . /etc/bashrc
    fi

    # User specific aliases and functions
    umask 027

    # User specific environment and startup programs
    JAVA_HOME=/home/common/java/jdk1.7.0
    ANT_HOME=/home/common/ant/apache-ant-1.8.2
    MW_HOME=/home/hiauser/Oracle/Middleware
    JAVA_VENDOR=Sun

    WL_SERVER_DIR=$MW_HOME/wlserver_10.3
    WL_DOMAIN_DIR=$MW_HOME/user_projects/domains/domain1

    PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:.:$MW_HOME/bin:$ANT_HOME/bin

    export PATH JAVA_HOME ANT_HOME MW_HOME WL_SERVER_DIR WL_DOMAIN_DIR

    alias start="sh $WL_DOMAIN_DIR/bin/startWebLogic.sh"
    alias stop="sh $WL_DOMAIN_DIR/bin/stopWebLogic.sh"
    alias log="tail -f $WL_DOMAIN_DIR/servers/AdminServer/logs/AdminServer.log"

## D.2 Creating and Importing a Self-Signed Certificate

Perform the following steps to create a self-signed certificate:

1. Create the identity keystore:

       $ keytool -genkey -keystore keystore.jks -storepass changeit -keypass changeit -alias identity -dname "CN=MyHostname, OU=FOR TESTING ONLY, O=MyOrganization, L=MyTown, S=MyState, C=US" -keyalg RSA -keysize 2048

2. Export the identity keystore certificate:

       $ keytool -export -keystore keystore.jks -storepass changeit -alias identity -file identity.cer

3. Import the identity keystore certificate:

       $ keytool -import -keystore truststore.jks -storepass changeit -alias identity -file identity.cer -trustcacerts

4. List the identity keystore:

       $ keytool -list -keystore keystore.jks -storepass changeit -v

5. List the truststore:

       $ keytool -list -keystore truststore.jks -storepass changeit -v