randomSerial returns a random serial number, so certificates from different runs never share one.
()
| 67 | // randomSerial returns a random serial number, so certificates from different |
| 68 | // runs never share one. |
| 69 | func randomSerial() (*big.Int, error) { |
| 70 | return rand.Int(rand.Reader, new(big.Int).Lsh(big.NewInt(1), 127)) |
| 71 | } |
| 72 | |
| 73 | // leaf returns a certificate for host signed by the authority, making it the |
| 74 | // first time it's asked for. |
no outgoing calls
no test coverage detected