Documentation ¶
Index ¶
- func GenerateRootCA() (*rsa.PrivateKey, *x509.Certificate, error)
- func LoadCert(path string) (*x509.Certificate, error)
- func LoadKey(path string) (*rsa.PrivateKey, error)
- func LoadRootCA(keyPath, certPath string) (*rsa.PrivateKey, *x509.Certificate, error)
- func SaveCert(cert *x509.Certificate, path string) error
- func SaveKey(key *rsa.PrivateKey, path string) error
- type RootCA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRootCA ¶
func GenerateRootCA() (*rsa.PrivateKey, *x509.Certificate, error)
root.keyとroot.crtを生成する
func LoadRootCA ¶
func LoadRootCA(keyPath, certPath string) (*rsa.PrivateKey, *x509.Certificate, error)
Types ¶
type RootCA ¶
type RootCA struct { Key *rsa.PrivateKey Cert *x509.Certificate }
func (*RootCA) IssueServerCert ¶
func (r *RootCA) IssueServerCert(cert *x509.Certificate, pubKey *rsa.PublicKey) (*x509.Certificate, error)
Click to show internal directories.
Click to hide internal directories.