remove extraneous console.log, refactor ahead of checking x5c certs.