use of org.bouncycastle.asn1.x500.X500Name in project ddf by codice.
the class PkiToolsTest method nameIsNotEmpty.
@Test
public void nameIsNotEmpty() throws CertificateEncodingException {
String host = "host.domain.tld";
X500Name name = PkiTools.makeDistinguishedName(host);
assertThat(name.toString(), equalTo("cn=" + host));
}
Aggregations