mirror of
https://github.com/outbackdingo/labca.git
synced 2026-01-27 02:19:27 +00:00
For standalone builds the HSM code is not used, so we can exclude it. The resulting binary now no longer requires libc of a certain version to be present.
35 lines
588 B
Go
35 lines
588 B
Go
//go:build standalone
|
|
|
|
package main
|
|
|
|
import "crypto"
|
|
|
|
const CERT_FILES_PATH = "/opt/boulder/labca/certs/webpki/"
|
|
|
|
type HSMConfig struct {
|
|
Module string
|
|
UserPIN string
|
|
SOPIN string
|
|
SlotID string
|
|
Label string
|
|
}
|
|
|
|
func (cfg *HSMConfig) Initialize(ca_type string, seqnr string) {
|
|
}
|
|
|
|
func (cfg *HSMConfig) CreateSlot() error {
|
|
return nil
|
|
}
|
|
|
|
func (cfg *HSMConfig) GetPrivateKey() ([]byte, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func (cfg *HSMConfig) ClearAll() error {
|
|
return nil
|
|
}
|
|
|
|
func (cfg *HSMConfig) ImportKeyCert(keyFile, certFile string) (crypto.PublicKey, error) {
|
|
return nil, nil
|
|
}
|