How to use HTML include macro for https URLs

hemanth acharya March 18, 2015

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 votes
Answer accepted
Stephen Deutsch
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 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).

hemanth acharya March 18, 2015

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

hemanth acharya March 19, 2015

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.

0 votes
Gopalakrishnan August 27, 2017

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. 

Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2017

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

Gopalakrishnan August 28, 2017

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. 

0 votes
Mallmann
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 19, 2015

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

hemanth acharya March 19, 2015

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.

0 votes
Alex Medved _ConfiForms_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 18, 2015

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

hemanth acharya March 19, 2015

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events