Skip to content

rihanalkamim/Install-Vaultwarden

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ’» Shell Script - Vaultwarden-Installation.sh

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.

⚠️ Make sure to run the script on a clean or controlled environment.
πŸ›‘οΈ Root privileges may be required for installing packages and setting up services.


πŸ” Vaultwarden Installation Script

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.


πŸ“¦ Requirements

  • Ubuntu
  • Root privileges
  • A domain or subdomain pointing to your server (e.g., vault.example.local)

πŸš€ How to Use

1. Clone this Repository

git clone https://github.com/rihanalkamim/Install-Vaultwarden.git
cd Install-Vaultwarden

2. Run the Script

sudo ./Vaultwarden-Installation.sh

3. Provide the Required Information

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"]:
...

πŸ”§ What It Does

  • πŸ“₯ 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

πŸ“‚ Files and Structure

/Vaultwarden
β”œβ”€β”€ Cert/
β”‚   β”œβ”€β”€ fullchain.pem
β”‚   β”œβ”€β”€ vault.your.domain.key
β”‚   └── vault.your.domain.pem
β”œβ”€β”€ compose.yaml
β”œβ”€β”€ vw-data/ (Docker volume)

πŸ§ͺ After Installation

  • 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

❗ Troubleshooting

  • Check Nginx config: sudo nginx -t
  • Restart Docker services: docker-compose restart
  • Check Vaultwarden logs: docker-compose logs vaultwarden

πŸ™‹ Support

Questions or suggestions?
Open an issue on GitHub or contact me at:

πŸ“§ rihanalkamim@gmail.com
πŸ”— github.com/rihanalkamim/Install-Vaultwarden


πŸ™ Acknowledgements

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

About

How to install Vaultwarden in few minutes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages