Create $altnames earlier, and also fix a bracing issue with this if statement. Fixes certificate importing.
Create $altnames earlier, and also fix a bracing issue with this if statement. Fixes certificate importing.

phil-davis/pfsense,BlackstarGroup/pfsense,NewEraCracker/pfsense,ptorsten/pfsense,NOYB/pfsense,NewEraCracker/pfsense,NOYB/pfsense,dennypage/pfsense,ptorsten/pfsense,NewEraCracker/pfsense,ptorsten/pfsense,brunostein/pfsense,dennypage/pfsense,jxmx/pfsense,pfsense/pfsense,phil-davis/pfsense,jxmx/pfsense,BlackstarGroup/pfsense,pfsense/pfsense,dennypage/pfsense,phil-davis/pfsense,BlackstarGroup/pfsense,brunostein/pfsense,NewEraCracker/pfsense,dennypage/pfsense,ch1c4um/pfsense,NOYB/pfsense,ch1c4um/pfsense,pfsense/pfsense,pfsense/pfsense,ch1c4um/pfsense,phil-davis/pfsense,ch1c4um/pfsense,jxmx/pfsense,brunostein/pfsense,BlackstarGroup/pfsense