Skip to content

digitalis-io/vault2cert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vault2Cert

It requests a SSL certificate from a HashiCorp vault server and stores it to either PEM files or JKS keystore.

Compiling

go mod tidy
go build -o vault2cert main.go

Usage

export VAULT_ADDR='http://127.0.0.1:8200'
export VAULT_TOKEN=root

./vault2cert --mount pki --common-name hello.example.com --role=test --write-to /tmp

This will write the PEM files to /tmp

export VAULT_ADDR='http://127.0.0.1:8200'
export VAULT_TOKEN=root

./vault2cert --mount pki --common-name hello.example.com --role=test --jks /tmp/hello.jks --jkspassword=changeme

Same as before but store the keys in JKS

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published