Rework cert keylen/digest validation. Fixes #9180
Rework cert keylen/digest validation. Fixes #9180

pfsense/pfsense,phil-davis/pfsense,NewEraCracker/pfsense,NewEraCracker/pfsense,dennypage/pfsense,phil-davis/pfsense,dennypage/pfsense,pfsense/pfsense,NewEraCracker/pfsense,phil-davis/pfsense,pfsense/pfsense,NewEraCracker/pfsense,phil-davis/pfsense,pfsense/pfsense,dennypage/pfsense,dennypage/pfsense