Bitwarden and iOS 12.4.8 issue!

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
stephane77
Posts: 33
Joined: Sun Nov 22, 2020 2:29 am

Bitwarden and iOS 12.4.8 issue!

Post by stephane77 »

Hi,

I installed DietPi 6.34 as a Vmware Workstation 16 virtual machine. I tested your new DietPi application : Bitwarden. It works in Windows 10 with the server IP (https://192.168.1.105:8001), Firefox Plugin, Opera Extension and Bitwarden app which is amazing! I did nothing at all except installing the app in DietPi and the Bitwarden app on Windows 10.

I tried on my iPhone 5s with iOS 12.4.8 but it failed on Safari and Firefox through (https://192.168.1.105:8001); it doesn't load any pages! Bitwarden apps gives an error message.

My goal is to use Bitwarden only at home. I don't have a domain and don't plan to get one even if it's free. Any ideas how to resolved this?

Regards,
Stephane
Attachments
bitwarden.png
User avatar
Joulinar
Posts: 3238
Joined: Sat Nov 16, 2019 12:49 am

Re: Bitwarden and iOS 12.4.8 issue!

Post by Joulinar »

I guess iOS is not accepting the self signed certificate that is used in Bitwarden from DietPi side. Are there options in iOS to allow not trusted certificates? Or can you upload own certificates inside iOS?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
stephane77
Posts: 33
Joined: Sun Nov 22, 2020 2:29 am

Re: Bitwarden and iOS 12.4.8 issue!

Post by stephane77 »

Hi,
There is an option in iOS to allow not trusted certificates and I can upload own certificates inside iOS!

Instructions are :
- Email the root certificate to yourself so you can access it on your iOS device
- Click on the attachment in the email on your iOS device
- Go to the settings app and click ‘Profile Downloaded’ near the top
- Click install in the top right
- Once installed, hit close and go back to the main Settings page
- Go to “General” > “About”
- Scroll to the bottom and click on “Certificate Trust Settings”
- Enable your root certificate under “ENABLE FULL TRUST FOR ROOT CERTIFICATES”

I don't see the certificate inside Bitwarden folder (/mnt/dietpi_userdata/bitwarden_rs)? I searched with Webmin but no crt files! Do I look in the wrong place?

Regards,
Stephane
User avatar
Joulinar
Posts: 3238
Joined: Sat Nov 16, 2019 12:49 am

Re: Bitwarden and iOS 12.4.8 issue!

Post by Joulinar »

you can convert the pem file init a crt file

Code: Select all

openssl x509 -outform der -in your-cert.pem -out your-cert.crt
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
stephane77
Posts: 33
Joined: Sun Nov 22, 2020 2:29 am

Re: Bitwarden and iOS 12.4.8 issue!

Post by stephane77 »

Hi,
Thanks, I'll try that in my iPhone!

I tried everything again today! Bitwarden web server works (https://192.168.1.105:8001), Firefox Plugin and Opera Extension too! Bitwarden app in Windows 10 failed? It says failed to fetch! I tought it works yesterday... It did or I forgot to test the Windows 10 app!?!

I tried both with rpi 3 and with windows 10 vmware virtual machine and I have same error message (everything else works)?
I also tried Edge browser, no issues with the web server! Is there a place that I should copy the certificate in Windows 10 to make it work with Bitwarden app?

Regards,
Stephane
Attachments
error.png
User avatar
Joulinar
Posts: 3238
Joined: Sat Nov 16, 2019 12:49 am

Re: Bitwarden and iOS 12.4.8 issue!

Post by Joulinar »

Hi,

if you found a way how to do it on iOS, let me know. This, I was not able to mange on my test device (iPhone SE, iOS 14.3)

On Windows 10 it's pretty strait compare to iOS
  1. close Bitwarden App on W10
  2. create the .crt file on DietPi
  3. copy the file to your W10 system
  4. double click the .crt file
  5. you should get the following
    picture.png
  6. click install
  7. select Trusted Root CA once ask
    picture2.png
  8. once installation finished you can double click the .crt file again to verify if it was installed correctly
  9. it should be trusted now
    picture3.png
  10. Now you can open Bitwarden App
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 2499
Joined: Sat Nov 18, 2017 6:21 pm

Re: Bitwarden and iOS 12.4.8 issue!

Post by MichaIng »

Many thanks, however for Windows 10 we have a guide already, which is starting with downloading the certificate from within the browser when accessing the web vault. But from opening the certificate file on it matches yours: https://dietpi.com/docs/software/cloud/#bitwarden_rs
User avatar
Joulinar
Posts: 3238
Joined: Sat Nov 16, 2019 12:49 am

Re: Bitwarden and iOS 12.4.8 issue!

Post by Joulinar »

Ah ok missed the W10 guide. Thx @MichaIng
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
stephane77
Posts: 33
Joined: Sun Nov 22, 2020 2:29 am

Re: Bitwarden and iOS 12.4.8 issue!

Post by stephane77 »

Joulinar wrote: Thu Dec 24, 2020 2:13 am you can convert the pem file init a crt file

Code: Select all

openssl x509 -outform der -in your-cert.pem -out your-cert.crt
Hi, I got the following error message after I run the command.

root@RaspberryPi:/mnt/temp# ls
rsa_key.pem
root@RaspberryPi:/mnt/temp# openssl x509 -outform der -in rsa_key.pem -out rsa_key.crt
unable to load certificate
1996206096:error:0909006C:PEM routines:get_name:no start line:../crypto/pem/pem_lib.c:745:Expecting: TRUSTED CERTIFICATE
root@RaspberryPi:/mnt/temp#

Regards,
Stephane
User avatar
Joulinar
Posts: 3238
Joined: Sat Nov 16, 2019 12:49 am

Re: Bitwarden and iOS 12.4.8 issue!

Post by Joulinar »

Merry Xmas @stephane77

You used the wrong source file to create the .crt file. You need to use cert.pem

Or you follow the our online docs. There is a detailed description how to download/add self signed certificate on Windows 10
https://dietpi.com/docs/software/cloud/#bitwarden_rs

PS: for iOS we are still trying to figure out best way :)
https://github.com/MichaIng/DietPi/issu ... -750883187
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply