reorganize a bunch of things related to the x509certificate interface
6 files changed