jcs / rubywarden

An unofficial, mostly Bitwarden-compatible API server written in Ruby (Sinatra and ActiveRecord)
ISC License
592 stars 49 forks source link

Provide procedure to implement HTTPS #112

Closed rei-vilo closed 3 years ago

rei-vilo commented 4 years ago

I've installed Rubywarden on a Raspberry Pi. The native macOS Bitwarden connects successfully although through http. However, the Bitwarden extension for Safari and the iOS app seem to require an https connection.

Unfortunately, I wasn't able to set https on my Raspberry Pi. Apache is already running with https enabled on my Raspberry Pi.

I went through #97, https://www.digitalocean.com/community/tutorials/how-to-use-apache-http-server-as-reverse-proxy-using-mod_proxy-extension and https://wp-mix.com/htaccess-redirect-http-to-https/, among other solutions from https://serverfault.com and https://httpd.apache.org/docs/, to no avail.

Would it be possible to release a procedure or provide a pointer to implement https?

Thank you!

Configuration

IchSchreiGleich commented 4 years ago

You could configure an virtual host in apache and then "ProxyPass" and "ProxyReverse" requests from and to localhost:4567 - So i did in my configuration.

bsilvereagle commented 4 years ago

There are some pointers here, as well as an explanation to make the https connection compatible with the iOS app:

https://frdmtoplay.com/self-hosting-bitwarden-on-a-beagle-bone-black/