이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 5. Client SSL Connections
5.1. SSL Client Connections 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
You need to define certain properties for each SSL mode.
Important
When connecting to the Red Hat JBoss Data Virtualization server with SSL enabled, you must use the "mms" protocol, instead of "mm" in the JDBC connection URL:
jdbc:teiid:<myVdb>@mms://<host>:<port>
jdbc:teiid:<myVdb>@mms://<host>:<port>
There are two different sets of properties that a client can configure to enable 1-way or 2-way SSL.
The first option is to use Java SSL properties. These are standard Java defined system properties to configure the SSL under any JVM. Red Hat JBoss Data Virtualization is not unique in its use of SSL. Provide the following system properties to the client VM process.
Here is one-way SSL:
-Djavax.net.ssl.trustStore=<dir>/server.truststore (required) -Djavax.net.ssl.trustStorePassword=<password> (optional) -Djavax.net.ssl.keyStoreType (optional)
-Djavax.net.ssl.trustStore=<dir>/server.truststore (required)
-Djavax.net.ssl.trustStorePassword=<password> (optional)
-Djavax.net.ssl.keyStoreType (optional)
Here is two-way SSL:
The second option is to use JDV-specific properties. Use this option when the above "javax" based properties are already in use by the host process. For example if your client application is a Tomcat process that is configured for HTTPS protocol and the above Java-based properties are already in use, and importing Teiid-specific certificate keys into those HTTPS certificate keystores is not allowed.
In this scenario, a different set of JDV-specific SSL properties can be set as system properties or defined inside the
teiid-client-settings.properties
file. A sample teiid-client-settings.properties
file can be found inside the teiid-client-[VERSION]-redhat-[VERSION].jar
file at the root called teiid-client-settings.orig.properties
. Extract this file, make a copy, change the property values required for the chosen SSL mode, and place this file in the client application's classpath before the teiid-client-[VERSION]-redhat-[VERSION].jar
file.
Here are the SSL properties and definitions that can be set in a
teiid-client-settings.properties
file: