keyctl

module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2023 License: GPL-3.0

README

KeyCtl - deliver secret keys with manual confirmation

Server

./keyctl server

Client

Admin Access

Admin access is only allowed via the Unix Domain Socket connection.

export KEYCTL_ENDPOINT=unix:///var/keyctl/keyctl.sock
./keyctl ls
Get Secret

The API to retrieve a secret can be called from any source IP.

export KEYCTL_ENDPOINT=http://127.0.0.1:7070
./keyctl get -id aabbccddeeff...

Get secret of type shamir with share via environment variable:

export KEYCTL_SHARE=aabbccddeeff...
./keyctl get -id aabbccddeeff...

Get secret of type shamir with share via commandline flag:

./keyctl get -id aabbccddeeff... -share aabbccddeeff...

Usage

./keyctl --help

./keyctl server --help

URL Scheme

HTTP
keyctl://127.0.0.1:7070/?id=aabbccddeeff...&share=aabbccddeeff...
HTTPS
keyctl://127.0.0.1:7070/?id=aabbccddeeff...&share=aabbccddeeff...&tls=true

Directories

Path Synopsis
cmd
pkg
api
cli
db
key

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL