it("can sign another certificate request", function() {
     childKey = certman.genRsaKey(1024);
     childReq = certReq = certman.createCertificateRequest(rsakey, 
         "UK","OX","Oxford","Univ. Oxford","Computer Science", "Pzp:Client Key", "*****@*****.**");
     childCert = certman.signRequest(childReq, 30, rsakey, ssCert, 1, "URI:pzh.webinos.org");
     expect(childCert).not.toBeNull();
     expect(childCert).toContain(CERT_START);
     expect(childCert).toContain(CERT_END);
     expect(childCert.length).toBeGreaterThan(100);
 });
 it("will error given a bad altname", function() {
     childKey = certman.genRsaKey(1024);
     childReq = certReq = certman.createCertificateRequest(rsakey, 
         "UK","OX","Oxford","Univ. Oxford","Computer Science", "Client Key", "*****@*****.**");
     try {
         childCert = certman.signRequest(childReq, 30, rsakey, ssCert, 1, "foo://bar");
         expect(childCert).toBeNull(); //shouldn't get here.
     } catch (err) {
         expect(err).not.toBeGreaterThan(0);
         expect(err.toString()).toEqual("Error: Failed to sign a certificate");
     }
 });