## Setting Up an SSL Connection

### Use

You may use SSL to encrypt communication between the Java application and the database instance.

### Prerequisites

● You use MaxDB in an SAP System.

● You have installed MaxDB 7.6 or above.

● You have configured your MaxDB installation for SSL. You can find more information in the Installation Guide (see Concepts of the Database System, Download).

● You have installed Sun Java JDK 1.4.0 or above (see java.sun.com).

### Procedure

If you have received the server certificate from a Certification Authority included on the list of trusted Certification Authorities of the Java platform, you can begin with step 2.

...

1. To add the server certificate to the list of trusted certificates, import it using the keytool program of the Java platform to a trust store file. You require the following information to do this:

○ Name of trust store file

○ Password for the trust store file

○ Name of the file that the certificate for MaxDB is saved in.

You can find more information in the documentation of the keytool program (see java.sun.com).

2. Select the following properties for the connection:

transport=secure

See

○ Method java.sql.DriverManager.getConnection

○ Class com.sap.dbtech.jdbcext.DataSourceSapDB

### Result

The Java application uses SSL for the connection to the database instance.

You can select the connection options in such a way that the database system does not execute all security checks when creating an SSL connection.

Only switch off the checks for development or testing purposes because otherwise the security of the connection to the database instance is not guaranteed or only partially guaranteed.

See also:

Connecting to the Database Instance