I am trying to set HTTPS on Redmine Bitnami on Windows

Keywords: Redmine - Windows - How to - Secure Connections (SSL/HTTPS)
Description:
Hello,

I am trying to follow the guide to set HTTPS on my Redmine on Windows. But I don’t know what type of Lego file I have to download and how to replace this command of this guide, for my case Windows :

cd /tmp
curl -Ls https://api.github.com/repos/xenolf/lego/releases/latest | grep browser_download_url | grep linux_amd64 | cut -d ‘"’ -f 4 | wget -i -
tar xf lego_vX.Y.Z_linux_amd64.tar.gz
sudo mkdir -p /opt/bitnami/letsencrypt
sudo mv lego /opt/bitnami/letsencrypt/lego

In fact, I am lost, but I already succeed to install HTTPS on Ubuntu with Redmine Bitnami, so I am confuse, can you help me please ?

I did the same few days ago.
Lego is already installed in letsencrypt folder, simply use it, nothing to download. Thanks to bitnami for that.

Then I choose to use the http challenge (if you do not know what a challenge is, it is a way to the certificate provider to be sure that you own the domain). In the bitnami documentation they use the tls challenge but I had a hard time with it because of the firewall I do not have the hand on it
Here is the command I used:

set APP=redmine-4.2.0-1

REM ### to make Lego recognize ###
CALL “C:\Bitnami%APP%\scripts\setenv.bat”
C:
cd “C:\Bitnami%APP%”

echo ### Should be Run As ADMINISTRATOR ###

%LOGFILE% (
REM ** Let’s Encrypt Test server **
REM --server https://acme-staging-v02.api.letsencrypt.org/directory

lego --http --http.webroot “C:\Bitnami%APP%\apache2\htdocs” --server https://acme-staging-v02.api.letsencrypt.org/directory --email=“myemailaddress” --domains=“domain1” --path=“C:\Bitnami%APP%\letsencrypt” --accept-tos run --run-hook=“T:/Data/RedMine/Script/Deploy-certificates.bat”
echo.
)

few more points:

  • the server should be first reachable with the url (mandatory)
  • test everything with the test server because there is a rate limite of 5 certificates/week with identical domain made by let’s encrypt. when you are ready you can remove --server https://acme-staging-v02.api.letsencrypt.org/directory
  • Deploy-certificates.bat is a batch i made to deploy the certificate (not mandatory to run the command)

Hope that help.

Hi @audranmala,

I think you solved it here.

Regards