🚧 Create disposable generator result & include cli output in Logging

This commit is contained in:
Magnus Leßmann (@MarkL4YG) 2024-11-10 21:10:24 +01:00
parent 8f198f944e
commit 24a4e32855
6 changed files with 97 additions and 29 deletions

View file

@ -17,12 +17,14 @@ public class TestOpenSSLCertificateCreator {
}
@Test
void testCertificateCreation() {
void testCertificateCreation() throws Exception {
CertificateRequest certRequest = CertificateRequest.builder()
.commonName("test.home")
.type(RequestType.STANDALONE_CERTIFICATE)
.build();
openSSLCertificateCreator.createCertificate(certRequest);
try (var cert = openSSLCertificateCreator.createCertificate(certRequest)) {
System.out.println("Certificate created: " + cert);
}
}
}