Documentation ¶
Index ¶
- Constants
- func DeleteCAProfilebyName(name string)
- func DeleteCAbyName(name string)
- func GetCAModeType(s string) uint8
- func GetCANameList() []string
- func GetCRLSize() uint32
- func GetCryptoEncryptionModeType(t string) uint8
- func GetCryptoEncryptionType(t string) uint8
- func GetCryptoHashType(t string) uint8
- func GetDBType(t string) uint8
- func GetDebugFlag() bool
- func GetDefaultCA() string
- func GetDefaultCAProfile() string
- func GetESTAuthMethod(t string) uint8
- func GetKeyType(t string) uint8
- func GetSignatureType(t string) uint8
- func GetValidityInHours(val uint64, unit string) uint64
- func InitGlobalConfig()
- func PrintConfigInfo()
- func SetAdminInterface(ip string, port uint16) bool
- func SetCABasicAttr(ca *CA, maxpath uint8) bool
- func SetCACRLPath(ca *CA, crlpath string) bool
- func SetCACertPath(ca *CA, cpath, kpath, chainpath string) bool
- func SetCAKeyInfo(ca *CA, ktype string, klen uint16) bool
- func SetCAMode(ca *CA, camode string) bool
- func SetCASignatureAlgoritm(ca *CA, algo string) bool
- func SetCASubjectAltName(ca *CA, ip, host string) bool
- func SetCASubjectName(ca *CA, cn, o, c, ou string) bool
- func SetCATLSInfo(ca *CA, id, key, tstore string) bool
- func SetCAValidity(ca *CA, val uint64, unit string) bool
- func SetCRLSize(s uint32)
- func SetConfigDefaults(conf *CESTConfig)
- func SetCryptoEncryptMode(enc string) bool
- func SetCryptoEncryption(enc string) bool
- func SetCryptoHash(hash string) bool
- func SetDBCredentials(uname string, pass string) bool
- func SetDBFile(file string) bool
- func SetDBIP(ip string, port uint16) bool
- func SetDBTLSInfo(id, key, tstore string) bool
- func SetDBType(t string) bool
- func SetDBURL(url string) bool
- func SetDebug(sense bool)
- func SetDefaultCA(name string) bool
- func SetDefaultCAProfile(name string) bool
- func SetESTAddr(ip string, port uint16) bool
- func SetESTAuthMethod(auth string) bool
- func SetESTTLSInfo(id, key, tstore string) bool
- func SetEnrollParameter(ca *CA, fingerprint, uname, passwd string) bool
- func SetLDAPAddr(ip string, port uint16) bool
- func SetLDAPTLSInfo(id, key, tstore string) bool
- func SetLDAPURL(url string) bool
- func SetParentCAAuthMode(ca *CA, mode string) bool
- func SetParentCAIP(ca *CA, ip string, port uint16) bool
- func SetParentCAURL(ca *CA, url string) bool
- func SetProfileBasicAttr(prof *CAProfile, isca bool, maxpath uint8) bool
- func SetProfileSubjectAltName(prof *CAProfile, ip, host string) bool
- func SetProfileSubjectName(prof *CAProfile, cn, o, c, ou string) bool
- func SetProfileValidity(prof *CAProfile, val uint64, unit string) bool
- type Address
- type AdminInterface
- type CA
- type CAList
- type CAProfile
- type CAProfileList
- type CESTConfig
- type CertAttributes
- type CertBasicAttr
- type CertSubjectAltName
- type CertSubjectName
- type Crypto
- type DBInfo
- type ESTInterface
- type KeyInfo
- type LDAPInfo
- type ParentCAInfo
- type TLSInfo
Constants ¶
View Source
const ( CEST_ENCRYPTION_INVALID = iota CEST_ENCRYPTION_AES128 CEST_ENCRYPTION_AES256 )
Enum Definitions
View Source
const ( CEST_STR_ENCRYPTION_AES128 = "aes128" CEST_STR_ENCRYPTION_AES256 = "aes256" )
View Source
const ( CEST_MODE_INVALID = iota CEST_MODE_CBC CEST_MODE_GCM )
View Source
const ( CEST_STR_ENC_MODE_CBC = "cbc" CEST_STR_ENC_MODE_GCM = "gcm" )
View Source
const ( CEST_HASH_INVALID = iota CEST_HASH_SHA1 CEST_HASH_SHA256 CEST_HASH_SHA384 CEST_HASH_SHA512 )
View Source
const ( CEST_STR_HASH_SHA1 = "sha1" CEST_STR_HASH_SHA256 = "sha256" CEST_STR_HASH_SHA384 = "sha384" CEST_STR_HASH_SHA512 = "sha512" )
View Source
const ( CEST_ENGINE_INVALID = iota CEST_ENGINE_SW CEST_ENGINE_CUSTOM )
View Source
const ( CEST_DBTYPE_INVALID = iota CEST_DBTYPE_SQLLITE CEST_DBTYPE_MYSQL )
View Source
const ( CEST_STR_DBTYPE_SQLLITE = "sqllite" CEST_STR_DBTYPE_MYSQL = "mysql" )
View Source
const ( CEST_AUTH_METHOD_INVALID = iota CEST_AUTH_METHOD_TLSPSK CEST_AUTH_METHOD_CERTAUTH CEST_AUTH_METHOD_HTTPBASICAUTH )
View Source
const ( CEST_STR_AUTH_TLSPSK = "tls-psk" CEST_STR_AUTH_CERTAUTH = "cert-auth" CEST_STR_AUTH_HTTPBASICAUTH = "http-basic-auth" )
View Source
const ( CEST_KEYTYPE_INVALID = iota CEST_KEYTYPE_RSA CEST_KEYTYPE_ECDSA )
View Source
const ( CEST_STR_KEYTYPE_RSA = "rsa" CEST_STR_KEYTYPE_ECDSA = "ecdsa" )
View Source
const ( CEST_CA_MODE_INVALID = iota CEST_CA_MODE_ROOT CEST_CA_MODE_SUBCA )
View Source
const ( CEST_STR_CA_MODE_ROOT = "ca" CEST_STR_CA_MODE_SUBCA = "subca" )
View Source
const ( CEST_VALIDITY_UNIT_DAYS = "day" CEST_VALIDITY_UNIT_HOURS = "hour" CEST_VALIDITY_UNIT_YEARS = "year" )
View Source
const ( CEST_SIGNATURE_INVALID = iota CEST_SIGNATURE_ECDSA_SHA1 = 9 CEST_SIGNATURE_ECDSA_SHA256 = 10 CEST_SIGNATURE_ECDSA_SHA384 = 11 CEST_SIGNATURE_ECDSA_SHA512 = 12 )
Taken from the x509 package in go lang
View Source
const ( CEST_STR_SIGNATURE_ECDSA_SHA1 = "ecdsa-with-sha1" CEST_STR_SIGNATURE_ECDSA_SHA256 = "ecdsa-with-sha256" CEST_STR_SIGNATURE_ECDSA_SHA384 = "ecdsa-with-sha384" CEST_STR_SIGNATURE_ECDSA_SHA512 = "ecdsa-with-sha512" )
View Source
const CEST_AUTH_METHOD_DEFAULT = CEST_AUTH_METHOD_TLSPSK
View Source
const CEST_CA_MODE_DEFAULT = CEST_CA_MODE_ROOT
View Source
const CEST_CA_VALIDITY_DEFAULT = 43830 // In hours
View Source
const CEST_CLIENT_VALIDITY_DEFAULT = 8766 // In hours
View Source
const CEST_CRLSIZE_DEFAULT = 512000
View Source
const CEST_DBFILE_DEFAULT = "est_ca_database.db"
View Source
const CEST_DBTYPE_DEFAULT = CEST_DBTYPE_SQLLITE
View Source
const CEST_ENCRYPTION_DEFAULT = CEST_ENCRYPTION_AES128
Defaults for the configuration
View Source
const CEST_ENCRYPTION_MODE_DEFAULT = CEST_MODE_CBC
View Source
const CEST_ENGINE_DEFAULT = CEST_ENGINE_SW
View Source
const CEST_HASH_DEFAULT = CEST_HASH_SHA256
View Source
const CEST_KEYLENGTH_DEFAULT = 512
View Source
const CEST_KEYTYPE_DEFAULT = CEST_KEYTYPE_ECDSA
View Source
const CEST_SIGNATURE_DEFAULT = CEST_SIGNATURE_ECDSA_SHA512
View Source
const (
CEST_STR_ENGINE_SW = "sw"
)
Variables ¶
This section is empty.
Functions ¶
func GetCryptoEncryptionModeType ¶
Get Encryption Mode type
func GetCryptoEncryptionType ¶
Get Crypto Encryption type from String
func GetValidityInHours ¶
find validity in hours given units and number
func SetCACertPath ¶
Set the CA cert paths
func SetCASignatureAlgoritm ¶
Set CA Signature Algorithm
func SetCASubjectAltName ¶
Set CA Sub Alt name
func SetConfigDefaults ¶
func SetConfigDefaults(conf *CESTConfig)
Set the defaults in a config structure
func SetDefaultCAProfile ¶
Set Default CA Profile if configured
func SetEnrollParameter ¶
Set Parent CA EST Params
func SetParentCAAuthMode ¶
Set Parent CA auth mode
func SetProfileBasicAttr ¶
Set profile basic Attributes
func SetProfileSubjectAltName ¶
Set Profile Sub Alt name
func SetProfileSubjectName ¶
Set Profile Subjectname
Types ¶
type AdminInterface ¶
type AdminInterface struct {
Addr Address
}
type CA ¶
type CAProfile ¶
type CAProfile struct { Name string Attr CertAttributes Validity uint64 // contains filtered or unexported fields }
func CreateCAProfile ¶
Create new ca profile object by name
type CAProfileList ¶
type CAProfileList struct { Default_prof string // contains filtered or unexported fields }
type CESTConfig ¶
type CESTConfig struct {
// contains filtered or unexported fields
}
type CertAttributes ¶
type CertAttributes struct { Subname CertSubjectName Subaltname CertSubjectAltName Basicattr CertBasicAttr }
type CertBasicAttr ¶
type CertSubjectAltName ¶
type DBInfo ¶
type ESTInterface ¶
type ParentCAInfo ¶
Click to show internal directories.
Click to hide internal directories.