Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Creating bundles that consume webservices over https

Avatar

Avatar
Level 1
krishna_priya_a
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
krishna_priya_a
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
krishna_priya_a
Level 1

23-12-2016

We are trying to consume a https web service from a bundle. It is throwing null pointer exception, as the socket creation for the port 443 is failing.

How can we fix this issue. Is there any configuration in AEM or is it a network issue, so that we can talk to our network team and open some port for this.

Please help

 

Regards,

Krishna Priya.

Replies

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,127 likes

Total Posts

6,121 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,127 likes

Total Posts

6,121 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

23-12-2016

Hi 

Please have a look at these Community articles showcasing "bundles that invoke third party Restful web services" and "Developing AEM components that display WordPress information(RESTful)"

Link:- https://helpx.adobe.com/experience-manager/using/restful-services.html

Link:- https://helpx.adobe.com/experience-manager/using/aem_wordpress.html

I hope this would help you.

~kautuk

Avatar

Avatar
Validate 1
Level 1
Brumoon_Ahamat
Level 1

Likes

2 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 1
Brumoon_Ahamat
Level 1

Likes

2 likes

Total Posts

14 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
Brumoon_Ahamat
Level 1

23-12-2016

One quick thing you can do to eliminate whether it is an AEM issue or a network issue, is to login to the AEM server's shell and execute a curl to consume the webservice and see whether you get a response back. If you do get a response, then the issue is with AEM. If you don't then, then it is most probably a Network issue.

Avatar

Avatar
Level 1
raja_vijay_sing
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
raja_vijay_sing
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
View profile
raja_vijay_sing
Level 1

28-12-2016

You would need to add your certificate to java truststore cacert

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

30-12-2016

Our AEM community articles that show use of web service do not use HTTPS. They simply use Apache CXF and Restful HTTP Java calls. 

This looks like a Java/Network issue. See:  http://stackoverflow.com/questions/1255083/consuming-https-web-services.

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,127 likes

Total Posts

6,121 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,127 likes

Total Posts

6,121 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

02-01-2017

Hi 

Adding one reference post here:

Link:-http://stackoverflow.com/questions/875467/java-client-certificates-over-https-ssl

// Java client certificates over HTTPS/SSL

 

You need to establish a chain of trust from the server cert to the JVM's own trusted CA certs. As long as a CA cert is available that starts that chain, you should be fine. If you self sign certs, you will need to add your signing CA to the java's keystore. You do not need to import every server's certificate. Just the trusted CA certificate that signed them all if it is not already trusted.

Import a root or intermediate CA certificate to an existing Java keystore:

keytool -import -trustcacerts -alias root -file Thawte.crt -keystore keystore.jks

~kautuk