This is a start on bug #8071.  It is just the base class and base test.  It sets itself up with keys and certificates, and will take in CSRs to save for later.
This is a start on bug #8072.  It is just the base class.