Skip to content

jcderr/vault-pki-extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vault PKI Extractor

The Vault API returns PKI bundles wrapped in JSON. For simplicity, this wrapper will take those payloads and output them in the following files:

  • ca.pem
  • cert.pem
  • cert-key.pem

Installation

pip install vault-pki-extractor

Docker

Alternatively, you can run this in docker.

docker run --rm -v ${PWD}:/tmp/data jcderr/vault-pki-extractor vault-pki-extractor \
    extract --url https://your.vault/v1/pki/issue/somerole --token your-token --cn your.domain

Usage

extract

vault-pki-extractor extract --input filename

If you already have the JSON payload saved to file (curl -o ...), you can pass the file in with --input.

vault-pki-extractor extract --url some_url --token some_token --cn some_common_name

Alternatively, VPE will use requests to call your vault server and do the needful.

The destination of your certificates is /tmp/data, but this can be changed with --build-dir.

report

If you just want to see the output, you can run report instead and get a prettified output of the information in your certificates. This isn't very useful except in debugging.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages