KeyStore ks1 = KeyStore.getInstance("gkr");
harness.check(ks1 != null, "GKR-type KeyStore MUST be available");
// load it with null i/o stream; i.e. create it
ks1.load(null, STORE_PASSWORD);
// store a (private) key-entry
PrivateKey pk1 = new DSSPrivateKey(Registry.ASN1_ENCODING_ID, p, q, g, x);
CertificateFactory x509Factory = CertificateFactory.getInstance("X.509");
byte[] certificateBytes = SELF_SIGNED_CERT.getBytes("ASCII");
ByteArrayInputStream bais = new ByteArrayInputStream(certificateBytes);
Certificate c1 = x509Factory.generateCertificate(bais);
Certificate[] chain1 = new Certificate[] { c1 };