Documentation ¶
Index ¶
- func CertPath(ca string, certname string) string
- func CreateRSAKeyAndCert(td string) (pri *rsa.PrivateKey, err error)
- func CreateSignedClientJWT(pk *rsa.PrivateKey, claims map[string]interface{}) (string, error)
- func CreateSignedServerJWT(pk *rsa.PrivateKey, pubK ed25519.PublicKey, claims map[string]interface{}) (string, error)
- func GbytesLogger(level logrus.Level) (*gbytes.Buffer, *logrus.Logger)
- func KeyPath(ca string, certname string) string
- func LoadRSAKey(key string) (pri *rsa.PrivateKey, err error)
- func StartServerInstance(ctx context.Context, wg *sync.WaitGroup, cfgFile string, log *logrus.Logger) (*server.Instance, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRSAKeyAndCert ¶
func CreateRSAKeyAndCert(td string) (pri *rsa.PrivateKey, err error)
CreateRSAKeyAndCert public.pem and private.pem in td
func CreateSignedClientJWT ¶
func CreateSignedClientJWT(pk *rsa.PrivateKey, claims map[string]interface{}) (string, error)
func CreateSignedServerJWT ¶
func LoadRSAKey ¶
func LoadRSAKey(key string) (pri *rsa.PrivateKey, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.