How to use HTML include macro for https URLs


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.



4 answers

1 accepted

This widget could not be displayed.
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.

This widget could not be displayed.

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

This widget could not be displayed.

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.


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.

This widget could not be displayed.

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' : Received fatal alert: handshake_failure"
And if I use confidoc plugin i get error as - "
Oops I broke:
IO Problem loading URL:
Error: PKIX path building failed: unable to find valid certification path to requested target

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



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,

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. 



Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

257 views 2 4
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