hpilo2

package
v0.0.0-...-1867f9a Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package hpilo2 allows installation of SSL certificates on HP ILO2 machines.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Installer

type Installer struct {
	// Username is the ILO2 username to authenticate with.
	Username string

	// Password is the password corresponding to Username.
	Password string

	// Addr is the address of the ILO2 server (e.g. hostname:port)
	Addr string

	// InsecureSkipTLSVerify determines whether TLS certificate verification should be skipped when connecting to ILO2.
	// You probably want this on, at least the first time, when migrating from the ILO2-self-signed certificate.
	InsecureSkipTLSVerify bool `mapstructure:"insecure_skip_tls_verify"`

	// TLSConfig is the TLS configuration to use when connecting to the ILO2 server.
	TLSConfig *tls.Config

	// Dialer is the dialer to use when creating new connections.
	Dialer *net.Dialer
}

func (*Installer) GenerateCSR

func (i *Installer) GenerateCSR(ctx context.Context) (*x509.CertificateRequest, error)

GenerateCSR generates a new certificate signing request.

func (*Installer) GetCertificate

func (i *Installer) GetCertificate(ctx context.Context) (*x509.Certificate, error)

GetCertificate retrieves the currently installed certificate from the ILO, by making a TLS connection to it.

func (*Installer) SetCertificate

func (i *Installer) SetCertificate(ctx context.Context, caBundle []*x509.Certificate, cert *x509.Certificate, pkey crypto.PrivateKey) error

SetCertificate installs the provided certificate on the ILO. The certificate must have been generated with the key from GenerateCSR.

Jump to

Keyboard shortcuts

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