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

Function SerialNumber

config/generate.go:66–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 2

GenerateCertificateFunction · 0.85

Calls 2

AddMethod · 0.80
SetMethod · 0.45

Tested by

no test coverage detected