adssl

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: BSD-2-Clause Imports: 17 Imported by: 1

README

adssl

Usage

NAME:
   adssl - Generate SSL certificates against Active Directory

USAGE:
   adssl [global options] command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --endpoint value, -e value    endpoint to use [$ENDPOINT]
   --username value, -u value    username to authenticate with (default: "tom") [$USER]
   --password value, -p value    username to authenticate with [$PASSWORD]
   --commonname value, -c value  common name [$COMMON]
   --hosts value, -l value       comma delimited list of hosts to add to cert [$HOSTS]
   --ips value, -i value         comma delimited list of IPAddresses to add to cert [$IPADDRS]
   --k8s-secret, -k              output as a kubernetes secret (default: false)
   --help, -h                    show help (default: false)

Example
adssl -e myad.example.com -p p4ssw0rd -c host1 -l host2,host3 -i 1.1.1.1 -k | kubectl apply -f -

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	PrivateKey         *rsa.PrivateKey
	RequestTemplate    x509.CertificateRequest
	CaCert             string
	CertificateRequest string
	Result             string
	ResultURL          string
}

Certificate contains a x509 certificate

func New

func New(s Server, r Request) (Certificate, error)

New returns a new Request

type Request

type Request struct {
	CommonName                  string
	Country, Province, Locality []string
	DNSNames                    string
	IPAddresses                 string
}

Request contains all we need to make the Certificate Request

type Server

type Server struct {
	Endpoint, Username, Password string
}

Server represents the AD CA

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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