This script was developed to automate the deployment of Vaultwarden β an open-source password manager. It includes everything needed to get Vaultwarden up and running securely and efficiently.
π What it does:
Automatically installs and configures Vaultwarden
Generates a self-signed SSL certificate
Sets up and configures a reverse proxy to serve Vaultwarden over HTTPS
Ideal for users who want a fast, secure, and repeatable way to deploy their own password vault with minimal manual setup.
π‘οΈ Root privileges may be required for installing packages and setting up services.
Vaultwarden-Installation.sh is a Shell script developed to fully automate the secure deployment of Vaultwarden, an open-source password manager.
It includes:
- Docker and Vaultwarden installation
- SSL certificate generation via OpenSSL
- Reverse proxy setup with Nginx
- Admin token creation using Argon2 encryption
β Designed for quick and secure deployments in self-hosted environments.
- Ubuntu
- Root privileges
- A domain or subdomain pointing to your server (e.g.,
vault.example.local
)
git clone https://github.com/rihanalkamim/Install-Vaultwarden.git
cd Install-Vaultwarden
sudo ./Vaultwarden-Installation.sh
Youβll be prompted to enter:
- Your domain (e.g.,
vault.example.local
) - Certificate fields (country, state, city, organization, etc.)
- A password to encrypt the CA private key
OBS: This password also used of Vaultwarden token
Example:
Your domain (Ex: intern.domain) [*]: vault.example.local
Country Name (Ex: US) [Default: "AU"]:
State or Province (Ex: Georgia) [Default: "N/A"]:
...
- π₯ Updates system and installs dependencies
- π Prompts for a secure password (used to encrypt private key)
- π Creates a self-signed Root CA and server certificate
- π³ Creates and launches the Vaultwarden Docker container
- π Configures Nginx as a secure HTTPS reverse proxy
/Vaultwarden
βββ Cert/
β βββ fullchain.pem
β βββ vault.your.domain.key
β βββ vault.your.domain.pem
βββ compose.yaml
βββ vw-data/ (Docker volume)
- Open your browser and go to:
https://vault.your.domain
- Access the admin panel
https://vault.your.domain/admin
using the password typing in certificate field
- Check Nginx config:
sudo nginx -t
- Restart Docker services:
docker-compose restart
- Check Vaultwarden logs:
docker-compose logs vaultwarden
Questions or suggestions?
Open an issue on GitHub or contact me at:
π§ rihanalkamim@gmail.com
π github.com/rihanalkamim/Install-Vaultwarden
A special thanks to the original creators of Vaultwarden, the open-source password manager project.
This script was created to make the deployment process easier and faster, leveraging Vaultwarden's amazing work.
For more details on Vaultwarden, check out the official repository:
π Vaultwarden - GitHub Repository