Actions
Bug #5022
closedcreating CA doesn't actually create the CA
Description
system_camanager.php, "add new", create an internal CA. fill in the fields, click Save. No CA is added.
Actions
Added by Chris Buechler about 9 years ago. Updated over 8 years ago.
Description
system_camanager.php, "add new", create an internal CA. fill in the fields, click Save. No CA is added.
Programmer had set form action to GET when logic uses POST.
Page now creates CAs although I sometimes see:
openssl library returns: error:0D07A098:asn1 encoding routines:ASN1_mbstring_ncopy:string too short
depending on the country chosen. (US => error, GB => no error) Please advise.
Country code drop-down should be using the country code as the value, seems to be numeric now, so any of the 0-9 choices probably fail. GB passes because it's later in the list. The drop-down is new, it used to be text entry.
Opened #5043 for that separate issue with the drop-down.
When pressing Save, the screen stays on "system_camanager.php?act=new" rather than returning to the CA list. The CA is added properly, it just doesn't redirect away after as it should. The redirect is OK when creating a certificate.
return to calling page was commented out. Presumably for debug
Applied in changeset pfsense:683ba309d50913828decb5fe3f6ade059c1dfab2.
Looks good now, thanks!