Revision 663e29bb
Added by Jim Pingle over 2 years ago
src/etc/inc/certs.inc | ||
---|---|---|
273 | 273 |
// return our ca information |
274 | 274 |
$ca['crt'] = base64_encode($str_crt); |
275 | 275 |
$ca['prv'] = base64_encode($str_key); |
276 |
$ca['serial'] = 0;
|
|
276 |
$ca['serial'] = 1;
|
|
277 | 277 |
|
278 | 278 |
return true; |
279 | 279 |
} |
src/usr/local/www/system_camanager.php | ||
---|---|---|
652 | 652 |
'number', |
653 | 653 |
$pconfig['serial'] |
654 | 654 |
))->setHelp('Enter a decimal number to be used as a sequential serial number for ' . |
655 |
'the next certificate to be signed by this CA.'); |
|
655 |
'the next certificate to be signed by this CA. This value is ignored ' . |
|
656 |
'when Randomize Serial is checked'); |
|
656 | 657 |
|
657 | 658 |
$form->add($section); |
658 | 659 |
|
Also available in: Unified diff
Note that CA serial is ignored when randomizing. Fixes #14188
While here, when creating a CA, set the default serial to 1 since the
GUI won't allow saving with the serial remaining at 0. That would
otherwise force the user to change it themselves.