fix: Forgot to reorder flags

This commit is contained in:
Magnus Leßmann (@MarkL4YG) 2024-11-23 19:56:01 +01:00
parent 402bd99abf
commit 8ffac7e02c
Signed by: Mark.TwoFive
GPG key ID: 5B5EBCBE331F1E6F

View file

@ -140,8 +140,8 @@ public class OpenSSLCertificateCreator {
.ofNullable(certAuthority.fullchainPath())
.orElse(certAuthority.certificatePath());
// Leaf certificate first, then the CA chain
Files.write(fullchain, Files.readAllBytes(signedCert), StandardOpenOption.APPEND);
Files.write(fullchain, Files.readAllBytes(certAuthFullchain), StandardOpenOption.CREATE);
Files.write(fullchain, Files.readAllBytes(signedCert), StandardOpenOption.CREATE);
Files.write(fullchain, Files.readAllBytes(certAuthFullchain), StandardOpenOption.APPEND);
} catch (IOException e) {
throw new CommandLineOperationException("Failed to create fullchain file.", e);
}