summaryrefslogtreecommitdiffstats
path: root/tenant-auth
diff options
context:
space:
mode:
Diffstat (limited to 'tenant-auth')
-rw-r--r--tenant-auth/src/main/java/ai/vespa/hosted/auth/ApiAuthenticator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tenant-auth/src/main/java/ai/vespa/hosted/auth/ApiAuthenticator.java b/tenant-auth/src/main/java/ai/vespa/hosted/auth/ApiAuthenticator.java
index f6a88ec83c2..c2d47622040 100644
--- a/tenant-auth/src/main/java/ai/vespa/hosted/auth/ApiAuthenticator.java
+++ b/tenant-auth/src/main/java/ai/vespa/hosted/auth/ApiAuthenticator.java
@@ -10,11 +10,11 @@ public class ApiAuthenticator implements ai.vespa.hosted.api.ApiAuthenticator {
public ControllerHttpClient controller() {
return Properties.apiCertificateFile()
.map(certificateFile -> ControllerHttpClient.withKeyAndCertificate(Properties.apiEndpoint(),
- Properties.apiPrivateKeyFile(),
+ Properties.apiKeyFile(),
certificateFile))
.orElseGet(() ->
ControllerHttpClient.withSignatureKey(Properties.apiEndpoint(),
- Properties.apiPrivateKeyFile(),
+ Properties.apiKeyFile(),
Properties.application()));
}