Don't error when failing to get certificates that may not be there

and make the Cert function return error

also put back a bunch of linefeeds that where not put in when `outf()` was removed
Since the last statement was `return`, there is no need for the `} else {` here.