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 ¶
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 ¶
GenerateCSR generates a new certificate signing request.
func (*Installer) GetCertificate ¶
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.
Click to show internal directories.
Click to hide internal directories.