aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-athenz
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2018-09-12 16:00:05 +0200
committerBjørn Christian Seime <bjorncs@oath.com>2018-09-12 16:00:05 +0200
commite5db2b3545d8207a5d78d0ad461d4ed1737102c4 (patch)
treefa2bf4265274e2253f4d787d4f10b44177fd8d91 /vespa-athenz
parentee4f1b5e04ac58790d3f1e3c3c5c2707ac65bce8 (diff)
Revert "Replace RSA with EC in unit test"
This reverts commit bdb057ecfac68acaaeecc2fe54ae989e0fba2c75.
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 bccdb3c5c98..6217d6fb2ee 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.EC);
+ KeyPair keypair = KeyUtils.generateKeypair(KeyAlgorithm.RSA);
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_ECDSA,
+ SignatureAlgorithm.SHA256_WITH_RSA,
BigInteger.ONE)
.build();
}