开发者

JDBC over SSL to a Cache database

开发者 https://www.devze.com 2023-03-21 06:36 出处:网络
I\'m pretty far out of my depth here, so bear with me. We\'re using JDBC via com.intersys.jdbc.cachedriver to run stored procedures in Intersystems Cache and get the results in Java. However, there ar

I'm pretty far out of my depth here, so bear with me. We're using JDBC via com.intersys.jdbc.cachedriver to run stored procedures in Intersystems Cache and get the results in Java. However, there are other clients that connect directly to the Cache using a terminal over telnet. We have to lock down Cache's telnet port so that only telnet over SSL is possible. However, the Cache experts here say that locking down one port in Cache locks them all down, so the Java to Cache connection will also have to use SSL. I understand vaguely that some JDBC drivers support SSL, but I don't see that the Cache one does. What I need to know is:

  1. What's needed to c开发者_如何学Configure SSL for the JDBC connections? (We're using JBoss 4.2.3)
  2. What about certificates? I assume those have to go somewhere.
  3. Is it actually true that locking down the telnet connections is also going lock down JDBC in the same way?


  1. Configuring Java Clients to Use SSL/TLS with Caché

  2. Using SSL/TLS with Caché

  3. Telnet vs ssh is a question about what the OS allows and only relates to Cache peripherally. It doesn't mean anything regarding items 1 or 2. So in answer to the direct question you are asking, "No".


  1. What's needed to configure SSL for the JDBC connections? (We're using JBoss 4.2.3)

See http://docs.intersystems.com/cache20102/csp/docbook/DocBook.UI.Page.cls?KEY=GCAS_ssltls#GCAS_ssltls_javacli for details. This section doesn't explicitly mention JDBC, but it's true for JDBC (and the reference has been added for the documentation 2011.1 [next release] .)

  2. What about certificates? I assume those have to go somewhere.

To quote the documentation: "If the client has a private key and certificate, these are stored in the client’s keystore; the keystore can also hold the client’s root CA certificate and any intermediate CA certificates. To authenticate the server, the client may need to have the root CA certificate for the server and any intermediate CA certificates, these can be stored either in the client’s truststore or along with client certificate information in the keystore. For more information on keystores and truststores, see the section “Keystores and Truststores” in the Java Secure Socket Extension (JSSE) Reference Guide."

  3. Is it actually true that locking down the telnet connections is also going lock down JDBC in the same way? 

Yes -- if telnet connections are to require TLS, then the superserver TLS setting needs to be Required, which means that you have to use TLS for anything that goes through the superserver (including JDBC). If you just want to allow the use of TLS for telnet connections, set the TLS value to Enabled, which allows non-TLS connections by other means (such as JDBC).

0

精彩评论

暂无评论...
验证码 换一张
取 消