summaryrefslogtreecommitdiffstats
path: root/vespa-athenz
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2018-09-11 16:32:46 +0200
committerBjørn Christian Seime <bjorncs@oath.com>2018-09-11 17:59:47 +0200
commitbdb057ecfac68acaaeecc2fe54ae989e0fba2c75 (patch)
treedcf7ed10684bbc4cbbf87f4fe75264b1d18de710 /vespa-athenz
parent3716e7f5a76f436bc08a0c57280e773d6f8957cc (diff)
Replace RSA with EC in unit test
Diffstat (limited to 'vespa-athenz')
-rw-r--r--vespa-athenz/src/test/java/com/yahoo/vespa/athenz/identity/SiaIdentityProviderTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespa-athenz/src/test/java/com/yahoo/vespa/athenz/identity/SiaIdentityProviderTest.java b/vespa-athenz/src/test/java/com/yahoo/vespa/athenz/identity/SiaIdentityProviderTest.java
index 6217d6fb2ee..bccdb3c5c98 100644
--- a/vespa-athenz/src/test/java/com/yahoo/vespa/athenz/identity/SiaIdentityProviderTest.java
+++ b/vespa-athenz/src/test/java/com/yahoo/vespa/athenz/identity/SiaIdentityProviderTest.java
@@ -39,7 +39,7 @@ public class SiaIdentityProviderTest {
@Test
public void constructs_ssl_context_from_file() throws IOException {
File keyFile = tempDirectory.newFile();
- KeyPair keypair = KeyUtils.generateKeypair(KeyAlgorithm.RSA);
+ KeyPair keypair = KeyUtils.generateKeypair(KeyAlgorithm.EC);
createPrivateKeyFile(keyFile, keypair);
X509Certificate certificate = createCertificate(keypair);
@@ -78,7 +78,7 @@ public class SiaIdentityProviderTest {
new X500Principal("CN=subject"),
now,
now.plus(Duration.ofDays(1)),
- SignatureAlgorithm.SHA256_WITH_RSA,
+ SignatureAlgorithm.SHA256_WITH_ECDSA,
BigInteger.ONE)
.build();
}