Languages/SQL

[Error] Public Key Retrieval is not allowed

잔망루피 2022. 3. 29. 20:23
반응형
java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed

 

application.properties에서 useSSL=true로 해줌

그 전에는 false였음

MySQL 8.0 이상부터 SSL로 연결해야 한다.

SSLSecure Sockets Layer이다. 데이터를 암호화해서 보안을 유지

spring.datasource.url=jdbc:mysql://localhost:3306/board?useSSL=true

 

 

 

참고 👇

https://deeplify.dev/database/troubleshoot/public-key-retrieval-is-not-allowed

 

[Mysql] Public key retrieval is not allowed 에러 해결

Public key retrieval is not allowed 에러가 발생하는 이유와 해결하는 방법에 대해서 소개해드립니다.

deeplify.dev

 

https://www.digicert.com/kr/what-is-ssl-tls-https/

 

SSL, TLS, HTTPS의 정의

What is SSL, TLS and HTTPS? SSL certificates are a crucial part of website security. When you visit a website with SSL, the site’s SSL certificate enables you to encrypt the data you send - such as credit card information, names or addresses – so it ca

www.digicert.com

 

반응형