()
| 65 | } |
| 66 | |
| 67 | func 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 | |
| 77 | func GenerateCertificateAuthority(commonName string, parentCert *x509.Certificate, parentKey *rsa.PrivateKey) (*x509.Certificate, *rsa.PrivateKey, error) { |
| 78 | now := time.Now() |
no test coverage detected