From 993e7cbd2efc6dfa2c543d9228b3e07cd9d63c98 Mon Sep 17 00:00:00 2001 From: Nima Saboonchi Date: Tue, 16 Apr 2024 15:08:59 +0200 Subject: [PATCH] DSS-2764: Change OID in the system test --- .../org/signserver/module/tsa/TimeStampSignerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/signserver/modules/SignServer-Test-System/src/test/java/org/signserver/module/tsa/TimeStampSignerTest.java b/signserver/modules/SignServer-Test-System/src/test/java/org/signserver/module/tsa/TimeStampSignerTest.java index 22fd5b297..fc2398f11 100644 --- a/signserver/modules/SignServer-Test-System/src/test/java/org/signserver/module/tsa/TimeStampSignerTest.java +++ b/signserver/modules/SignServer-Test-System/src/test/java/org/signserver/module/tsa/TimeStampSignerTest.java @@ -626,7 +626,7 @@ public void test09HashWithNotAllowedAlgorithm() throws Exception { } /** - * Test request a timestamp using a made-up dummy hash algorithm name + * Test request a timestamp using RSA OID for hash algorithm */ @Test public void test10HashWithIllegalAlgorithm() throws Exception { @@ -635,9 +635,9 @@ public void test10HashWithIllegalAlgorithm() throws Exception { workerSession.removeWorkerProperty(WORKER1.getId(), TimeStampSigner.ACCEPTEDALGORITHMS); workerSession.reloadConfiguration(WORKER1.getId()); - // Dummy OID used for testing an invalid hashing algorithm - String DUMMY_OID = "1.42.42.42.42"; - ASN1ObjectIdentifier oid = new ASN1ObjectIdentifier(DUMMY_OID); + // RSA OID used for testing an invalid hashing algorithm + String RSA_OID = "1.3.112.4.1.66"; + ASN1ObjectIdentifier oid = new ASN1ObjectIdentifier(RSA_OID); int status = testWithHash(oid, null, true); assertEquals("Should not accept an invalid hash algorithm", PKIStatus.REJECTION, status);