BitwardenHighlightsLinux
0

Bitwarden An error has occurred. Cannot read properties of null (reading ‘importKey’)

Latest version of web browser is not supporting non ssl connection you need to add SSL to your bitwarden.

Check that to establish SSL: here

To create your reverse proxy in apache please use that:

Define SSLCertificateFile_Path "/etc/letsencrypt/live/yourdomain.com/fullchain.pem"
Define SSLCertificateKeyFile_Path "/etc/letsencrypt/live/yourdomain.com/privkey.pem"

<VirtualHost *:443>
 ServerName bitwarden.yourdomain.com
 ServerAlias bitwarden.yourdomain.com
 SSLEngine on
 SSLCertificateFile ${SSLCertificateFile_Path}
 SSLCertificateKeyFile ${SSLCertificateKeyFile_Path}
 SSLProxyEngine On
 RewriteEngine On
 RewriteCond %{HTTP:ewriteCondwebsocket [NC]
 RewriteRule /notifications/hub(.*) ws://<SERVER>:3012/$1 [P,L]
#RewriteCond %{REMOTE_ADDR} !^213\.5\.43\.232$
#RewriteRule ^ /maintenance.html

 ProxyPass / http://yourbitwardeniporhostname:88/
 ProxyPreserveHost On
 ProxyRequests Off
 RequestHeader set X-Real-IP %{REMOTE_ADDR}s
 ErrorLog ${APACHE_LOG_DIR}/error.log
 CustomLog ${APACHE_LOG_DIR}/access.log combined
 
 </Location>

</VirtualHost>

make sure you have installed modules:

sudo a2enmod headers
sudo a2enmod ssl
sudo a2enmod proxy
sudo a2enmod proxy_balancer
sudo a2enmod proxy_http
sudo systemctl restart apache2

Leave a Reply

Your email address will not be published. Required fields are marked *