> ## Content Index
> Fetch the complete content index at: https://scriptcrunch.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Hashicorp Vault Setup: Getting Started Guide
- URL: https://scriptcrunch.com/hashicorp-vault-setup/
- Published: 2018-12-27T17:59:38.000Z
- Updated: 2026-06-23T08:56:12.000Z
- Author: Scriptcrunch Editorial
- Tags: Security, Vault, #Migrated-1758801465347, #wp, #wp-post, #Import 2025-09-25 11:57

In this [guide](https://scriptcrunch.com/tag/guides/), you will learn the latest Hashicorp [vault](https://scriptcrunch.com/tag/vault/) setup using step by step instructions. The backend for vault storage used is server Filesystem

## Hashicorp Vault Setup

Follow the step by step `instructions` given below to get a working vault setup with UI.

> **Note:**[development](https://scriptcrunch.com/tag/development/)

**Step 1:** [Go](https://scriptcrunch.com/tag/go/) to Hashicorp vault downloads page and download the latest package.

wget https://releases.hashicorp.com/vault/1.0.1/vault\_1.0.1\_linux\_amd64.zip

**Step 2:** Unzip the package

unzip vault\_1.0.1\_linux\_amd64.zip

**Step 3:** Move the vault executable to /usr/bin

sudo mv vault /usr/bin/

**Step 4:** verify vault command by checking its version.

vault -v

**Step 5:** Enable vault command completion.

vault -autocomplete-install

**Step 6:** Create vault data folder.

sudo mkdir /vault-data

**Step 7:** Create vault config file in hcl format as shown below.

ui = true storage "file" { path = "/vault-data" } listener "tcp" { address = "0.0.0.0:8200" tls\_disable = 1 }

**Step 8:** Start the vault server in the background.

vault server -config=config.hcl &

**Step 9:** Initialise vault to get the keys.

vault operator init

It will output 5 unseal keys and a root key as shown below. Note down those keys. Root key will be used to login to vault CLI and UI.

![](https://storage.ghost.io/c/98/9f/989fb5e0-fca9-4938-afe7-999714e98540/content/images/2025/09/vault-keys-initialization.png)

**Step 10:** By default vault will be sealed. It should be unsealed with minimum of three unseal keys as shown below.

vault operator unseal A621ZvA8JyQ8TIu30PwD6u1yFfTVFuxczIHw9Ls5KV8s  
vault operator unseal KMoQ2CzF7lKN6s/rmoUorX9PGQSa1F33PHq/q7wpe3w3  
vault operator unseal 9YRVkV5x93xNEEzeBZmnr/4XALt6D7xR/wOKnemPuLBb

Now if you check the vault status, it should say false for sealed parameter as shown below.

![](https://storage.ghost.io/c/98/9f/989fb5e0-fca9-4938-afe7-999714e98540/content/images/2025/09/unsealed-vault.png)

> **Note:step 9**

**Step 11:** You can also access the vault UI on port 8200 of your vault server.

For example,

http://35.192.109.160:8200/ui/

![](https://storage.ghost.io/c/98/9f/989fb5e0-fca9-4938-afe7-999714e98540/content/images/2025/09/vault-ui.png)

You can login to the UI using the root key you got in **step 9**.