1
0
mirror of https://github.com/bitwarden/help synced 2026-02-08 04:23:20 +00:00

section on self-signed certs

This commit is contained in:
Kyle Spearrin
2019-11-05 08:34:45 -05:00
parent af8b46ef08
commit 777952668f

View File

@@ -42,6 +42,7 @@ Bitwarden provides a powerful, full-featured command-line interface (CLI) tool t
- [Update](#update)
- [Version](#version)
- [Working with JSON](#working-with-json)
- [Self-signed Certificates](#self-signed-certificates)
- [Source Code](#source-code)
- [Appendix](#appendix)
- [Templates](#templates)
@@ -350,10 +351,6 @@ For example, if you are using a self hosted Bitwarden server you will need to ch
You can read the value of a configured setting by not specifying a value.
bw config server
If your Bitwarden server exposes as self-signed TLS certiciate, specify the Node.js environment variable [`NODE_EXTRA_CA_CERTS`](https://nodejs.org/api/cli.html#cli_node_extra_ca_certs_file):
export NODE_EXTRA_CA_CERTS="absolute_path_to_your_certificates.pem"
### Update
@@ -389,6 +386,18 @@ Commands in the CLI will either return a JSON string or a simple string such as
bw get folder dadc91e0-dcda-4bc2-8cd6-52100027c782 | jq '.name = "Updated Folder"' | \
bw encode | bw edit folder dadc91e0-dcda-4bc2-8cd6-52100027c782
## Self-signed Certificates
If your self-hosted Bitwarden server exposes as self-signed TLS certificate, specify the Node.js environment variable [`NODE_EXTRA_CA_CERTS`](https://nodejs.org/api/cli.html#cli_node_extra_ca_certs_file):
{% icon fa-linux %} {% icon fa-apple %} Bash
export NODE_EXTRA_CA_CERTS="absolute/path/to/your/certificates.pem"
{% icon fa-windows %} PowerShell
$env:NODE_EXTRA_CA_CERTS="absolute/path/to/your/certificates.pem"
## Source Code
As with everything here at Bitwarden, the CLI is fully open source and hosted on GitHub at <https://github.com/bitwarden/cli>.