Hi,
I have osgi client which invokes secure(https) rest-service through rest-template.
When I am Testing the Client through main program I am able to invoke the rest-service Successfully.
I have imported the certificates in cacerts under java_home/jre/lib/security to invoke the service successfully from osgi client.
But When I have installed osgi client in felix .Its Not able to invoke the service and Following Exception Occurs:
":sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:498)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:446)
at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:294)
at com.phh.restfulservice.RestClientHandlerImpl.invokeRestService(RestClientHandlerImpl.java:52)
AEM is running on same JAVA_HOME.
1. can we invoke the secured protocol (https) service from non secured protocol( Aem )
2. Do I need to do any Additional configuration in AEM.
3.Is it necessary to ENABLE https in AEM also?
NOTE : my rest-service is deployed in Tomcat.
Thanks and Regards,
Rahul Jain