Skip to content

Instantly share code, notes, and snippets.

@devlights
Created September 22, 2023 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devlights/8271d3f5ae8eaf2d7b332f3c887dc5df to your computer and use it in GitHub Desktop.
Save devlights/8271d3f5ae8eaf2d7b332f3c887dc5df to your computer and use it in GitHub Desktop.
DataGripで古い SQL Server に接続する際に「TLSv1 was negotiated. Please update server and client to use TLSv1.2 at minimum.」って出たときの対処方法

方法

custom.java.security (ファイル名は何でも良い) というファイルを何処かに作る。以下は $HOME 直下に作ったとする。

中身を以下のようにする

jdk.tls.disabledAlgorithms=SSLv3, RC4, DES, MD5withRSA, \
     DH keySize < 1024, EC keySize < 224, 3DES_EDE_CBC, anon, NULL, \
     include jdk.disabled.namedCurves

後は、DataGripのデータソースプロパティのところの詳細タブのVMオプションのところに

-Djava.security.properties=/path/to/custom.java.security

とする。


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment