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

0 votes
Answer accepted

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 votes

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.

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
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

259 views 2 10
Read article

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