Oracle JDBC (MOSC)

MOSC Banner

Native Network Encrytion in a Net Service Name (TNSNAMES)

edited Sep 9, 2024 4:17PM in Oracle JDBC (MOSC) 4 commentsAnswered ✓

Hi,

is it possible to set native network encryption parameters (ENCRYPTION_CLIENT,ENCRYPTION_TYPES_CLIENT etc. ) in a net service name?

I have found nothing in the documentation but adding e.g. (SERVICE_NAME=SERVICE))(Security=(ENCRYPTION_CLIENT=REQUIRED)) seems to work and the connection uses AES256. Also (SERVICE_NAME=SERVICE))(Security=(ENCRYPTION_CLIENT=REJECTED)) seems to work but e.g. ENCRYPTION_TYPES_CLIENT not? So why does this work? In the documentation I have found nothing about that.

I have found here an example in combination with ojdbc.properties:

https://support.oracle.com/epmos/faces/DocumentDisplay?_afrLoop=119216821145049&id=2806731.1&displayIndex=2&_afrWindowMode=0&_adf.ctrl-state=78ir68vwp_72

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center