Versions in this module Expand all Collapse all v1 v1.3.1 Jul 11, 2023 Changes in this version + const DefaultCRLNextTime + const DefaultPrivateKeyPwd + const DefaultTokenSecretKey + const DefaultWorkDirectory + var CaType2NameMap = map[CaType]string + var HashType2NameMap = map[crypto.HashType]string + var Name2CaTypeMap = map[string]CaType + var Name2HashTypeMap = map[string]crypto.HashType + func GetConfigEnv() string + func GetDBConfig() string + func GetFlagPath() string + func InitConfig(configPath string) + func SetConfig(envPath string) + type AccessControlConf struct + AppId string + AppKey string + AppRole string + type AllConfig struct + AccessControlConfs []*AccessControlConf + BaseConf *BaseConf + DBConf *DBConfig + IntermediateCaConfs []*ImCaConfig + LogConf *loggers.LogConifg + Pkcs11Conf *Pkcs11Conf + RootCaConf *CaConfig + func GetAllConf() (*AllConfig, error) + func GetAllConfig() *AllConfig + func (ac *AllConfig) GetAccessControlConf() []*AccessControlConf + func (ac *AllConfig) GetBaseConf() *BaseConf + func (ac *AllConfig) GetCaType() string + func (ac *AllConfig) GetCanIssueCa() bool + func (ac *AllConfig) GetDBConf() *DBConfig + func (ac *AllConfig) GetDefaultCertValidTime() time.Duration + func (ac *AllConfig) GetDefaultDomain() string + func (ac *AllConfig) GetDefaultExpireMonth() int + func (ac *AllConfig) GetDefaultExpireYear() int + func (ac *AllConfig) GetHashType() string + func (ac *AllConfig) GetIntermediateConf() []*ImCaConfig + func (ac *AllConfig) GetKeyType() string + func (ac *AllConfig) GetLogConf() *loggers.LogConifg + func (ac *AllConfig) GetPkcs11Conf() *Pkcs11Conf + func (ac *AllConfig) GetPkcs11Enabled() bool + func (ac *AllConfig) GetProvideServiceFor() []string + func (ac *AllConfig) GetRootCertConf() []*CertConf + func (ac *AllConfig) GetRootConf() *CaConfig + func (ac *AllConfig) GetRootCsrConf() *CsrConf + func (ac *AllConfig) GetServerPort() string + func (ac *AllConfig) IsAccessControl() bool + func (ac *AllConfig) IsKeyEncrypt() bool + type BaseConf struct + AccessControl bool + CaType string + CanIssueca bool + CertValidTime time.Duration + DefaultDomain string + ExpireMonth int + ExpireYear int + HashType string + IsKeyEncrypt bool + KeyType string + ProvideServiceFor []string + ServerPort string + type CaConfig struct + CertConf []*CertConf + CsrConf *CsrConf + type CaType int + const DOUBLE_ROOT + const SIGN + const SINGLE_ROOT + const TLS + type CertConf struct + CertPath string + CertType string + KeyId string + PrivateKeyPath string + type CsrConf struct + CN string + Country string + Locality string + O string + OU string + Province string + type DBConfig struct + DbName string + IP string + Password string + Port string + User string + type ImCaConfig struct + CsrConf *CsrConf + KeyId string + type Pkcs11Conf struct + Enabled bool + Hash string + Label string + Library string + Password string + SessionCacheSize int