From 982610275764d2be25b307d0392d7204052ffd22 Mon Sep 17 00:00:00 2001 From: Andy Witrisna Date: Wed, 22 May 2024 15:25:33 -0700 Subject: [PATCH] SDKS-3221 use English locale when generate certificate for Application Pin --- CHANGELOG.md | 3 ++- .../java/org/forgerock/android/auth/AppPinAuthenticator.kt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 807f6dc4..c1e6659c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [4.4.2] #### Fixed -- SDKS-3073 Resolve commons-io-2.6.jar and bcprov-jdk15on-1.68.jar vulnerability warning [SDKS-3073] +- Resolve commons-io-2.6.jar and bcprov-jdk15on-1.68.jar vulnerability warning [SDKS-3073] +- Use English locale when generating certificate for Application Pin [SDKS-3221] ## [4.4.1] #### Fixed diff --git a/forgerock-core/src/main/java/org/forgerock/android/auth/AppPinAuthenticator.kt b/forgerock-core/src/main/java/org/forgerock/android/auth/AppPinAuthenticator.kt index 89b798dd..92184404 100644 --- a/forgerock-core/src/main/java/org/forgerock/android/auth/AppPinAuthenticator.kt +++ b/forgerock-core/src/main/java/org/forgerock/android/auth/AppPinAuthenticator.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 ForgeRock. All rights reserved. + * Copyright (c) 2022 - 2024 ForgeRock. All rights reserved. * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. @@ -111,6 +111,7 @@ class AppPinAuthenticator(private val cryptoKey: CryptoKey, BigInteger.valueOf(System.currentTimeMillis()), validityBeginDate, validityBeginDate, + Locale.ENGLISH, owner, SubjectPublicKeyInfo.getInstance(keyPair.public.encoded)) return JcaX509CertificateConverter().getCertificate(builder.build(sigGen))