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