이 콘텐츠는 선택한 언어로 제공되지 않습니다.

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> 
Copy to Clipboard Toggle word wrap
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)
Copy to Clipboard Toggle word wrap
Here is two-way SSL:
-Djavax.net.ssl.keyStore=<dir>/client.keystore (required)
-Djavax.net.ssl.keyStrorePassword=<password> (optional)
-Djavax.net.ssl.trustStore=<dir>/server.truststore (required)
-Djavax.net.ssl.trustStorePassword=<password> (optioanl)
-Djavax.net.ssl.keyStroreType=<keystore type> (optional)
Copy to Clipboard Toggle word wrap
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:
########################################
# SSL Settings
########################################
 
#
# The key store type.  Defaults to JKS
#
 
org.teiid.ssl.keyStoreType=JKS
 
#
# The key store algorithm, defaults to
# the system property "ssl.TrustManagerFactory.algorithm"
#
 
#org.teiid.ssl.algorithm=
 
#
# The classpath or filesystem location of the
# key store.
#
# This property is required only if performing 2-way
# authentication that requires a specific private
# key.
#
 
#org.teiid.ssl.keyStore=
 
#
# The key store password (not required)
#
 
#org.teiid.ssl.keyStorePassword=
 
#
# The key alias(not required, if given named certificate is used)
#
 
#org.teiid.ssl.keyAlias=
 
#
# The key password(not required, used if the key password is different than the keystore password)
#
 
#org.teiid.ssl.keyPassword=
 
#
# The classpath or filesystem location of the
# trust store.
#
# This property is required if performing 1-way
# authentication that requires trust not provided
# by the system defaults.
#
 
#org.teiid.ssl.trustStore=
 
#
# The trust store password (not required)
#
 
#org.teiid.ssl.trustStorePassword=
 
#
# The cipher protocol, defaults to TLSv3
#
 
org.teiid.ssl.protocol=TLSv1
 
#
# Whether to allow anonymous SSL
# (the TLS_DH_anon_WITH_AES_128_CBC_SHA cipher suite)
# defaults to true
#
 
org.teiid.ssl.allowAnon=true
1-way SSL
org.teiid.ssl.trustStore=<dir>/server.truststore (required)
2-way SSL
org.teiid.ssl.keyStore=<dir>/client.keystore (required)
org.teiid.ssl.trustStore=<dir>/server.truststore (required)
  	
Copy to Clipboard Toggle word wrap
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat