🚧 Create disposable generator result & include cli output in Logging
This commit is contained in:
parent
8f198f944e
commit
24a4e32855
6 changed files with 97 additions and 29 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue