MCPcopy Create free account
hub / github.com/prometheus/common / SerialNumber

Function SerialNumber

config/generate.go:67–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67func SerialNumber() *big.Int {
68 var serial big.Int
69
70 serial.Set(serialNumber)
71 serialNumber.Add(&serial, big.NewInt(1))
72
73 return &serial
74
75}
76
77func GenerateCertificateAuthority(commonName string, parentCert *x509.Certificate, parentKey *rsa.PrivateKey) (*x509.Certificate, *rsa.PrivateKey, error) {
78 now := time.Now()

Callers 2

GenerateCertificateFunction · 0.85

Calls 2

AddMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected