chore: Run spotless

This commit is contained in:
Magnus Leßmann (@MarkL4YG) 2024-11-17 20:20:58 +01:00
parent ae6c7232c4
commit caefe964b1
8 changed files with 146 additions and 57 deletions

View file

@ -20,7 +20,13 @@ public class TestOpenSSLCertificateCreator {
@Test
void testCertificateCreation() throws Exception {
CertificateRequest certRequest = CertificateRequest.builder().commonName("test.home").type(RequestType.STANDALONE_CERTIFICATE).subject(CertificateSubject.builder().country("DE").state("SH").locality("HH").organization("Crazy-Cats")).extension(CertificateRequestExtension.builder().alternativeNames("test2.home", "test3.home")).build();
CertificateRequest certRequest = CertificateRequest
.builder()
.commonName("test.home")
.type(RequestType.STANDALONE_CERTIFICATE)
.subject(CertificateSubject.builder().country("DE").state("SH").locality("HH").organization("Crazy-Cats"))
.extension(CertificateRequestExtension.builder().alternativeNames("test2.home", "test3.home"))
.build();
try (var cert = openSSLCertificateCreator.createCertificate(certRequest)) {
System.out.println("Certificate created: " + cert);