Documentation ¶
Index ¶
- Constants
- func GenerateCSR(filename string, domainName string, keyBytes *rsa.PrivateKey) ([]byte, error)
- func GeneratePrivateKey(fileName string) (*rsa.PrivateKey, error)
- func GetIP(theInterface string) string
- func LoadX509KeyPair(certFile, keyFile string) (*x509.Certificate, *x509.Certificate, *rsa.PrivateKey, *error)
- type CertificateRequest
- type CertificateResponse
- type JSONMessage
- type RegClientRequest
- type RegClientResponse
Constants ¶
View Source
const BIT_SIZE = 2048
View Source
const Banner = "" /* 354-byte string literal not displayed */
View Source
const Version = "1.0"
Variables ¶
This section is empty.
Functions ¶
func GenerateCSR ¶
func GeneratePrivateKey ¶
func GeneratePrivateKey(fileName string) (*rsa.PrivateKey, error)
func LoadX509KeyPair ¶
func LoadX509KeyPair(certFile, keyFile string) (*x509.Certificate, *x509.Certificate, *rsa.PrivateKey, *error)
Types ¶
type CertificateRequest ¶
type CertificateRequest struct { JSONMessage CSR []byte ClientID string }
type CertificateResponse ¶
type CertificateResponse struct { JSONMessage Success bool Certificates [][]byte Message string }
type JSONMessage ¶
type JSONMessage struct { }
func (JSONMessage) Marshall ¶
func (r JSONMessage) Marshall() string
type RegClientRequest ¶
type RegClientRequest struct { JSONMessage ClientID string IP string }
type RegClientResponse ¶
func (RegClientResponse) Marshall ¶
func (r RegClientResponse) Marshall() string
Click to show internal directories.
Click to hide internal directories.