How to use HTML include macro for https URLs

Hi,

How can I use the HTML macro to include the https://someurl/ . It keeps throwing "Could not retrieve" page not permitted error. I added the url to the Whitelist as well.

Also, if Application link is the way to go, Can I just configure an outgoing link? I just want the contents from that site to be shown in confluence.

Thanks,

Hemanth

4 answers

1 accepted

0 vote
Stephen Deutsch Community Champion Mar 18, 2015

You might try using an iframe? You can either include the iframe code in the HTML macro or use the iframe macro included in the content formatting plugin (free for that part).

Using an iframe didn't work either. I mean there is still error.

Sorry it got resolved using an iframe. I embedded the iframe in the html code macro. Before that I put the url in the whitelist as a wildcard expression and allowed the incoming link, and this resolved.

Try with ConfiDoc plugin. No need to have iframes, could hide authentication details if/when necessary

Is it not supported otherwise in html include macro? I mean, do we need to use this plugin itself to get through? Even in iframe this didn't work. Please confirm. Thanks

0 vote

Hi Hemanth,

Can you confirm whether you have the certificate of the URL you're trying to include inside your JAVA's cacerts?

Also, can you please verify whether the logs are showing any error related to this behaviour? You might find a PKIX error in there, in case this is related to not having the certificate in the cacerts.

 

I hope it helps.

Eduardo

Hi @Eduardo Mallmann , No there are no errors related to the certs. The certs are already there. Its our internal site which I can access normally in the browser.

The code which am trying to include, we don't want to have iframe since the height and width audjust dynamically, so I dont want to use iFrame. 

 

Also I tried with Confidoc plugin, all i get the error is "

Error rendering macro 'html-include' : javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure"
 
And if I use confidoc plugin i get error as - "
Oops I broke:
IO Problem loading URL: https://techdocs.corp.ooyala.com/api/v1/provider/84132/attributes/html
Error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


What is the best practive to include a https link inside confluence?

 

Thanks. 

The error tells you that the SSL certificate used to sign the server's certificate is not recognized as trusted by JVM

There is a good explanation (see accepted answer) on SO, https://stackoverflow.com/questions/9619030/resolving-javax-net-ssl-sslhandshakeexception-sun-security-validator-validatore

So it clearly, the certificate has to imported to the confluence server and to make this effect we have to restart the confluence server, please correct me if am wrong. 

 

Thanks. 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

284 views 11 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you