use of org.candlepin.pki.CertificateReader in project candlepin by candlepin.
the class CertificateReaderTest method readkey.
@Test
public void readkey() throws Exception {
Configuration config = new MapConfiguration(new HashMap<String, String>() {
{
put(ConfigProperties.CA_CERT, "target/test/resources/certs/test.crt");
put(ConfigProperties.CA_CERT_UPSTREAM, "target/test/resources/certs/upstream");
put(ConfigProperties.CA_KEY, "target/test/resources/keys/pkcs1-des-encrypted.pem");
put(ConfigProperties.CA_KEY_PASSWORD, "password");
}
});
new CertificateReader(config, new PrivateKeyReader());
}
Aggregations