Skip to content

Commit cc2b5f8

Browse files
authored
fix(*): test certificate getting loaded when app starts after running test (#74)
1 parent e21a1d6 commit cc2b5f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

generateSSLCertificate.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
KEYSTORE_PASSWORD="changeit"
55
ALIAS="dummyClientAlias"
66
KEYSTORE_FILE="dummyClient.jks"
7-
PFX_FILE="WebServiceClientCert.pfx"
7+
PFX_FILE="certificateForTest.pfx"
88
KEY_PASSWORD="changeit"
99
VALIDITY_DAYS=3650
1010

11-
rm -rf *.pfx *.jks
11+
rm -rf certificateForTest.pfx dummyClient.jks
1212

1313
# Generate a self-signed certificate using keytool
1414
keytool -genkeypair -keyalg RSA -keysize 2048 -alias $ALIAS -keystore $KEYSTORE_FILE -storepass $KEYSTORE_PASSWORD -keypass $KEY_PASSWORD -validity $VALIDITY_DAYS -dname "CN=Dummy Client, OU=Test, O=Test Corp, L=Test City, S=Test State, C=US" -noprompt

src/test/resources/application-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ hmpps-auth:
1010

1111
lrs:
1212
base-url: "http://localhost:8082"
13-
pfx-path: "WebServiceClientCert.pfx"
13+
pfx-path: "certificateForTest.pfx"

0 commit comments

Comments
 (0)