From 7c32cec46d17d01391ee99c4f079051d9926fc75 Mon Sep 17 00:00:00 2001 From: Nikolaos Karaolidis Date: Thu, 15 Feb 2024 23:27:45 +0000 Subject: [PATCH] Update certificate instructions Signed-off-by: Nikolaos Karaolidis --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 73eadbf..6189501 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,17 @@ An unofficial Docker container of the [ProtonMail Bridge](https://protonmail.com ## Initialization -To initialize and add account to the bridge, run the following command. +To initialize and add account to the bridge, run the following commands. ```bash -docker run --rm -it -v protonmail:/root registry.karaolidis.com/karaolidis/protonmail-bridge init +docker run --rm -it -v protonmail:/root -v /path/to/fullchain.pem:/root/cert.pem:ro -v /path/to/privkey.pem:/root/key.pem:ro registry.karaolidis.com/karaolidis/protonmail-bridge init +cert import +/root/cert.pem +/root/key.pem +login +info ``` -Wait for the bridge to startup, then you will see a prompt appear for [Proton Mail Bridge interactive shell](https://proton.me/support/bridge-cli-guide). Use the `login` command and follow the instructions to add your account into the bridge. Then use `info` to see the configuration information (username and password). After that, use `exit` to exit the bridge. You may need `CTRL+C` to exit the docker entirely. - ## Run To run the container, use the following command.