[2024-02-23 13:52:51,887] [ERROR] c.h.l.p.p.a.ControllerAspect - Java did not support the algorithm:EC
Caused by: java.security.NoSuchAlgorithmException: EC KeyFactory not available

 

IOS 결제 영수증 확인 API 호출시 오류 EC KeyFactory not available

 

오류 관련 내용을 찾아보니 java security 설정을 변경해야 한다고 했다.

 

vi /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-3.b17.el7.x86_64/jre/lib/security/java.security
// 추가
security.provider.9=sun.security.ec.SunEC

 

 

결과1

또다른 오류 발생

Unable to convert signature to JOSE format. Unavailable ECDSA Signature algorithm 'SHA256withECDSA'.

 

결국 자바 버전 변경 1.8 사용 중이였는데 11로 변경 

 

정상 동작 확인 하였습니다.

 

결론 JAVA 버전 변경이 필요합니다.

 

 

'공부 > 오류' 카테고리의 다른 글

requestMappingHandlerMapping 오류  (0) 2024.03.17
intellij gradle 빌드 오류  (0) 2024.02.22
IntelliJ Spring Boot 3.x 오류  (0) 2024.02.13
commit failed with error  (0) 2016.12.08
declares multiple JSON fields named  (1) 2016.01.05