helpers

command
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

README

Lemur signer bin

The lemur signer expects a csr via stdin, along with the ENV vars and CLI flags, it passes the cert to the declared lemur endpoint, once done, it spits out the signed cert chain at stdout.

Expects the netfix lemur API to be available.

CLI Args (all required)

Authority to use for signing

--authority="TestCA"

Cert validity in years

--valid-years 1

Owner contact email address

--owner admin@example.com

Common Name (required)

--common-name xadse231.bmc.example.com

ENV variables

Lemur auth token

KEY=sdfgsASDWERsdfsdfwersfdgsfg

Lemur API endpoint

ENDPOINT=https://lemur/api/1/certificates

Sample request

  cat /tmp/idrac9.csr | DEBUG_SIGNER=1 KEY="sdfgsASDWERsdfsdfwersfdgsfg" \
                        ENDPOINT="https://lemur/api/1/certificates" ./lemur_signer \
                       --authority="TestCA" --valid-years 1 --owner joel.rebello@booking.com --common-name="xadse231.bmc.example.com"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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