certificate chain verification rewritten completely with different arguments and different behavior
i did this because i can't see how it would have possibly been a useful function before
performs the following tests:
1) verify that the issuer is the subject of the preceeding certificate
2) verify that the certificate is signed by the previous issuer
3) verify that the root certificate in the chain is self signed and/or trusted
returns interesting information such as the authority and the cn of the certificate.
does _not_ check flags yet