I just noticed that the Mantis bug at
http://bugs.developer.mindtouch.com/view.php?id=3583 for this issue has been closed with a "won't fix" resolution. The closer states that the problem was that the root certificates were not installed, and that misses the point.
Based on the discussion in this thread, the JIRA plug-in for Deki Wiki cannot use an https URI no matter what. In my scenario, I have installed my local root CA certificate such that the Debian host trusts it. In fact, I can use wget to grab a page from the site without issues. But the JIRA plug-in fails. Another user on this site said that using the mono tools also did no good.
Using a reverse proxy running on the wiki server is a workaround, but the solution offered by bertvanbrakel seems problematic to me because it exposes encrypted content across his local network. That may be acceptable in some environments, but if I bother to use SSL with something, I generally do not want it flowing in the clear over my internal or external networks. Since the JIRA plug-in produces URLs used in auto-generated links, the proxy needs to be available to all wiki client systems if those links are going to work.
I implemented a somewhat klunky workaround, but I would love to get rid of it in favor or something simple that allows Deki Wiki to query JIRA over SSL.
1. My JIRA server happens to have an Apache port 8080 redirect to the secure page. You could also create this anew on any port that you want.
Code:
<VirtualHost *:8080>
Redirect permanent / https://jira.company.com/
</VirtualHost>
Note that this is on the JIRA server--not the wiki server! Also make sure that the mod_alias Apache module is installed.
2. I edited the /etc/hosts file on my Deki Wiki server so that jira.company.com resolves to the the local server (localhost):
Code:
127.0.0.1 jira.company.com
3. I changed the ProxyPass command in bertvanbrakel's solution so that it uses the real IP address of the JIRA server rather than its name.
Code:
ProxyPass / https://10.0.0.1/ retry=1
That generates an SSL error since the certificate is for the name jira.company.com and not 10.0.0.1. Fortunately, whatever does the querying for the JIRA plug-in is happy to ignore this error.
I also restricted proxy access to localhost:
Code:
<Proxy *>
Order Deny,Allow
Deny from all
Allow from localhost
</Proxy>
5. In the JIRA plug-in, I configure the URL to be:
Code:
http://jira.company.com:8080
The end result is this:
-The JIRA plug-in for Deki Wiki can access JIRA by "talking to itself" via the proxy at
http://jira.company.com:8080. These communications are not encrypted, but they never leave the machine (one service is just talking to another), so that is not a huge security issue.
-The JIRA plug-in produces wiki links with URLs like
http://jira.company.com:8080/blah.
-When other machines access
http://jira.company.com:8080, they are redirected to the real JIRA server, which redirects to the real HTTPS URL without the intervention of a proxy.