공부/오류
IOS 결제 영수증 확인 API 호출시 오류 EC KeyFactory not available
성난호랑이 시니철
2024. 2. 26. 20:16
[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 버전 변경이 필요합니다.