This forum is no longer active. Please post your questions to our new community site
How to activate ssl / Security
|
|
Hello, i try to activate ssl encryption on Redmine, but it seems not to function and i dont find additional informations how to enable https on redmine. Is there a How-To or something about enabling https on redmine somewhere? Also i miss some informations about the security of Redmine from the Bitnami installer. Because we want to go online and productive now, I would like to know how to secure the system. Thank you |
|
|
Hi, To enable SSL is very simple. You should modify the “apache2/conf/httpd.conf” file, uncommenting the following line: “Include conf/extra/httpd-ssl.conf” Then you can create a certificate using openssl and put your certificate into “apache2/conf” folder. I hope it helps. |
|
|
@beltran Thank you. I think i can get now additional informations how to activate SSL from the apache documentation. I was not sure at which end i need to start. But can’t you say something about the Redmine security itself? I think reading in the Apache Documentation how to secure the Webserver itself is a good start, but are there any special things to consider because of the Bitnami installation of Redmine itself? The Bitnami Redmine Installation still is called a “Beta”. Are there any known security risk when going in production with this version? |
|
|
We try to use the latest stable application version (0.8.2 in Redmine case). BitNami developers follow the same approach for all components (MySQL, Apache, etc). There is not any know security bug in this version but you can upgrade easily in the future, following the Redmine upgrade steps. I’m sure that Redmine application take into account all possible security issues. About BitNami Stacks, all Stacks have the “beta-ish” tag but Gmail is also beta and everybody use it :) Really I do not know when we will remove the “beta” tag from the webpage. Cheers. |
|
|
OK, after some hours i managed to create the Certificates and activate them in Apache. I can now browse to https://myRedmine.mydomain.com and i see the Bitanmi Splash Screen viaq https. But when i go to https://myRedmine.mydomain.com/redmine and then the Login-Screen appears, I#m back to http. |
|
|
OK, i found it. Just typed: RequestHeader set X_FORWARDED_PROTO ‘https’ at the end of the http.conf i could post the complete ToDo about activating SSL on Bitanami-Redmine if you liked. Is there a special place to do so? |
|
|
I’m glad to hear this. Yes please, you can write a simple post in this forum or if you send us by email we can create a blog entry about this. We appreciate your help :) We will add a task in our TODO list to include an option to configure Redmine Stack using https automatically. Cheers. |
|
|
sorry that it takes so long. Here is a short “Https To-Do” : Activating SSL on >Bitnami Redmine installation: 1: Creating a Ssl Certificate 1: Creating Ssl Certificate: Now we need to transform the Request-Zertifikat in a signed Zertifikat:
openssl x509 -in new.cert.csr -out new.cert.cert -req -signkey new.cert.key -days 365 2. Enable HTTPS “Include conf/extra/httpd-ssl.conf” Then you put your certificate from point 1. into “apache2/conf” folder. In httpd-ssl.conf you should add/change the following:
There are a lot more lines that you can uncomment/chance also, but for the first run you don’t. See the apache manual for further steps. Uhhps, it doesn’t look good here. I have postet you an OpenOffice file with better formatting an additional “Tipps for Beginners” |
|
|
Thanks! I have modified your post a bit to show it better. |
|
|
Hi, I have been following all steps on the configuration to activate the ssl encryption Redmine, anyway I still have problems and it doesn’t work. 1: Creating a Ssl Certificate servercert.crt 2. Enable HTTPS Before modifying https.conf, it’s working properly on http: Listen “80” Then I just modified the file apache2/conf/httpd.conf uncommenting the line “Include conf/extra/httpd-ssl.conf” I also put my file servercert.crt into the “apache2/conf” folder. Finally I modified httpd-ssl.conf, the file and it’s virtual port definition looks like this: DocumentRoot “C:/Program Files/BitNami Redmine Stack/apache2/htdocs” SSLEngine on SSLCipherSuite ALL: SSLCertificateFile “C:/Program Files/BitNami Redmine Stack/apache2/conf/servercert.crt” SSLCertificateKeyFile “C:/Program Files/BitNami Redmine Stack/apache2/conf/servercert.key” <FilesMatch “\.(cgi|shtml|phtml|php)$”> <Directory “C:/Program Files/BitNami Redmine Stack/apache2/cgi-bin”> BrowserMatch “.MSIE.” \ CustomLog “C:/Program Files/BitNami Redmine Stack/apache2/logs/ssl_request.log” \ < /VirtualHost > Could anybody please help me? Thanks…. |
|
|
In the Windows rubystack distribution, one more line needs to be uncommented in httpd.conf. I still have an issue, though. Although I can connect with https to redmine, I can also connect with http. I’d like to restrict all access to https. I already set protocol to https. |
|
|
The combination of the above worked a treat – you guys are brilliant. I also added an SSL forward to force SSL: Add the following code section to your httpd.conf down around line #220, right after the big “load modules” section. Be aware that “#’s” indicate a comment line in the .conf file and are ignored by Apache2. #########################################
####
<IfModule !mod_rewrite.c> RewriteEngine on ####
ReWriteCond %{SERVER_PORT} !^443$ ####
RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
Add the code to httpd.conf and restart Apache2, check your logs for errors to ensure a clean startup and connect to your server on port 80. It should be instantly redirected to 443. |
|
|
Hi. |
|
|
Hi, Have you installed the Stack as root user? If you installed the Stack as a regular user Apache can not bind any port lower than 1024. |
|
|
Hello, thanx everyone for suggestions. I have managed to launch HTTPS support using Win Server 2008 IMPORTANT points that will help you along with the above posts: 1. RequestHeader set X_FORWARDED_PROTO ‘https’ —→ this line should be inserted INSIDE of the VirtualHost block. 2. If you get “RSA Server Certificate is a CA Certificate (BasicConstraints: CA == TRUE !?)” in your error.log file then check once more whether your certificate CN (common name field) and ServerName in the VirtualHost block are EQUAL. Remove PORT number from ServerName in case you have it there. For ex. in your certificate you have common name as ‘your.domain.com’, so in ServerName parameter inside of the VirtualHost block you should write ‘ServerName your.domain.com’ instead of ‘ServerName your.domain.com:443’. Although for some people above remarks could be obvious – it took me for about an hour to settle those problems. So it might for you – in that case I hope I shall save you some time :) |
|
|
Thanks for sharing that with us ! Danoo |
|
|
While writing this post in notepad, I’ve resolved most of problems which I’d wanted to ask about :) But still I have a couple of questions. Thanks in advance. Sorry for my english :) |
|
|
If you are running on Amazon EC2 then don’t forget to allow inbound traffic from port 443 (Amazon AWS Console → EC2 → Security Groups → Add rule). If you need to verify that the packets reach the machine use tcpdump: $ sudo tcpdump -i any port 443 |
|
|
Thanks for sharing the info. You are right, you should open the 443 port in the Amazon AWS firewall. |

