Load To Technical Architect
[Jeus] Data Source에서 SQL Server 연결시 발생하는 SSL 에러 해결 본문
- OS : CentOS 7.9
- WAS : Jeus 8.5
- JAVA : 11
- DB : SQL Server 2019
현상 : Jeus 콘솔에서 Data Source에 DB 정보 입력 후 TEST 하는데 아래 에러 발생
The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target".
java.security 파일에서 jdk.certpath.disabledAlgorithms 주석처리도 해봤지만 안됨
해결 : 2개의 방안
방안 1. mssql-jdbc 드라이버 버전을 9.4 이하로 설치하여 사용
"서버에 인증서가 설치된 경우 SQL Server에서 클라이언트와 서버 간에 전송되는 모든 데이터에 TLS 암호화를 사용하도록 지정하려면 “true”로 설정합니다. 기본값은 버전 10.2 이상에서는 “true”이고 9.4 이하에서는 “false”입니다."
[출처 : https://docs.microsoft.com/ko-kr/sql/connect/jdbc/setting-the-connection-properties?view=sql-server-ver15]
방안 2. encrypt=false로 변경
Jeus에 Data Source에서 하단에 있는 고급 선택사항 - Property에 encrypt:java.lang.Boolean=false 추가

'삽질 모음' 카테고리의 다른 글
[Jeus] Jenkins에서 Jeus Managed Server 시작시 빌드 Failure (0) | 2022.07.05 |
---|---|
[Jeus] JeusServer.log에 Java Application log가 기록이 안됨 (0) | 2022.05.17 |
[Jenkins] sudo: no tty present and no askpass program specified (0) | 2022.01.21 |
[Jenkins] Send build artifacts over SSH 파일 전송 안됨 (0) | 2021.10.29 |
[Jenkins] Could not initialize class org.eclipse.jgit.internal.storage.file.FileSnapshot (0) | 2021.10.26 |