Categorygithub.com/couchbaselabs/cbcerthelper
modulepackage
0.0.0-20220203115212-3b5fe2d4c5e2
Repository: https://github.com/couchbaselabs/cbcerthelper.git
Documentation: pkg.go.dev

# README

cbcerthelper

Utility and library for the purpose of assisting in creating certificates and client certificates for use in authentication against Couchbase Server during development/testing.

Using as an application

Building is the usual go thing: go build -o cbcerthelper ./cmd/cbcerthelper/main.go.

What it does:

* Creates a root certificate and key
* Creates a node certificate, certificate request, and key for each node provided
* Copies the node certificate and key to the node over ssh/scp
* Uploads the root certificate to the node and reloads the certificate
* Creates a client certificate that can be used to auth against nodes
* Writes out all the certificates and keys to disk

What it might do:

* If it fails then it might leave your cluster in a weird state where some nodes have certificates and others don't

What it won't do:

* Any attempt at recovery if it fails at any step

Usage

Configuration of the executable is done via a config file (it'll look for $HOME/.cbcerthelper.toml) or cli flags. Parameters are the same in both config file and cli and are:

NameTypeDescriptionExample
configstringPath to config file./.cbcerthelper.toml
http-userstringUsername to use for auth against Couchbase ServerMyAdminUser
http-passstringPassword to use for auth against Couchbase ServerMyAdminPass
ssh-userstringUsername to use for ssh access to nodes hosting Couchbase Servergary
ssh-passstringPassword to use for ssh access to nodes hosting Couchbase Servergaryspassword
cert-userstringThe username for the user that will be authenticating with this client certificatedave
cert-emailstringThe email for the user that will be authenticating with this client certificate[email protected]

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author