Skip to content

Commit

Permalink
Check if privateKey is null _or_ empty
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinherron committed Aug 30, 2023
1 parent 5cae0b2 commit 228511d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -231,7 +231,7 @@ class ServerConfigurationObject(
CertificateUtil.decodeCertificate(it.bytesOrEmpty())
}

val keyPair: KeyPair = if (privateKey == null || privateKey.isNull) {
val keyPair: KeyPair = if (privateKey == null || privateKey.isNullOrEmpty) {
// Use current PrivateKey + new certificates
val oldKeyPair = certificateManager.getKeyPair(thumbprint).orElseThrow()

Expand Down

0 comments on commit 228511d

Please sign in to comment.