### Install and Start Bitwarden on Linux/MacOS Source: https://bitwarden.com/open-source Use these commands to download the Bitwarden installation script, make it executable, and then install and start the Bitwarden service. Ensure you have curl and bash installed. ```bash $ curl -Lso bitwarden.sh https://go.btwrdn.co/bw-sh \ && chmod +x bitwarden.sh $ ./bitwarden.sh install $ ./bitwarden.sh start ``` -------------------------------- ### Install and Start Bitwarden on Windows Source: https://bitwarden.com/open-source Execute these PowerShell commands to download the Bitwarden installation script, and then use it to install and start the Bitwarden service. This requires PowerShell. ```powershell > Invoke-RestMethod -OutFile bitwarden.ps1 \ -Uri https://go.btwrdn.co/bw-ps > .\bitwarden.ps1 -install > .\bitwarden.ps1 -start ``` -------------------------------- ### Custom TOTP URI Example Source: https://bitwarden.com/help/integrated-authenticator This example demonstrates how to construct an otpauth://totp/ URI with custom parameters for algorithm, digits, and period. This is useful when a service requires specific TOTP generation settings different from Bitwarden's defaults. ```plain text otpauth://totp/Test:me?secret=JBSWY3DPEHPK3PXP&algorithm=sha256&digits=8&period=60 ``` -------------------------------- ### Public API Event Response Source: https://bitwarden.com/help/event-logs Example JSON response structure returned by the /events endpoint of the Bitwarden Public API. ```json { "object": "list", "data": [ { "object": "event", "type": 1000, "itemId": "string", "collectionId": "string", "groupId": "string", "policyId": "string", "memberId": "string", "actingUserId": "string", "date": "2020-11-04T15:01:21.698Z", "device": 0, "ipAddress": "xxx.xx.xxx.x" } ], "continuationToken": "string" } ``` -------------------------------- ### Import Data using CLI Source: https://bitwarden.com/help/import-data Use this command to import data into your Bitwarden vault. Replace `` with the data format and `` with the file path. Use `bw import --formats` to see a list of supported formats. ```bash bw import ``` ```bash bw import /Users/myaccount/Documents/mydata.csv ``` -------------------------------- ### Manually Update Let's Encrypt Certificate (Linux/macOS) Source: https://bitwarden.com/help/certificates Commands to stop Bitwarden, back up existing Let's Encrypt certificates, create a new directory, set permissions, pull the Certbot Docker image, and run Certbot to obtain a new certificate. Requires OpenSSL for generating DH parameters and rebuilding Bitwarden. ```bash ./bitwarden.sh stop mv ./bwdata/letsencrypt ./bwdata/letsencrypt_backup mkdir ./bwdata/letsencrypt chown -R bitwarden:bitwarden ./bwdata/letsencrypt chmod -R 740 ./bwdata/letsencrypt docker pull certbot/certbot docker run -i --rm --name certbot -p 443:443 -p 80:80 -v /bwdata/letsencrypt:/etc/letsencrypt/ certbot/certbot certonly --email --logs-dir /etc/letsencrypt/logs ``` ```bash openssl dhparam -out ./bwdata/letsencrypt/live//dhparam.pem 2048 ./bitwarden.sh rebuild ./bitwarden.sh start ``` -------------------------------- ### CSV Export Format Source: https://bitwarden.com/help/event-logs Example structure of the CSV file generated when exporting event logs from the Bitwarden web vault. ```csv message,appIcon,appName,userId,userName,userEmail,date,ip,type Logged in.,fa-globe,Web Vault - Chrome,1234abcd-56de-78ef-91gh-abcdef123456,Alice,alice@bitwarden.com,2021-06-14T14:22:23.331751Z,111.11.111.111,User_LoggedIn Invited user zyxw9876.,fa-globe,Unknown,1234abcd-56de-78ef-91gh-abcdef123456,Alice,alice@bitwarden.com,2021-06-14T14:14:44.7566667Z,111.11.111.111,OrganizationUser_Invited Edited organization settings.,fa-globe,Web Vault - Chrome,9876dcba-65ed-87fe-19hg-654321fedcba,Bob,bob@bitwarden.com,2021-06-07T17:57:08.1866667Z,222.22.222.222,Organization_Updated ``` -------------------------------- ### Configure SSL Paths in config.yml Source: https://bitwarden.com/help/certificates Specify the paths to your SSL certificate and private key in the Bitwarden configuration file. These paths should point to the files generated or placed on your server. ```yaml ssl_certificate_path: /etc/ssl/bitwarden.example.com/certificate.crt ssl_key_path: /etc/ssl/bitwarden.example.com/private.key ```