Commit 6e3d38f 1 parent 98e2606 commit 6e3d38f Copy full SHA for 6e3d38f
File tree 2 files changed +6
-1
lines changed
gateway/src/main/resources
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
ALIAS=" itmo-dating"
9
9
ALIAS_BACKEND=" $ALIAS -backend"
10
+ ALIAS_EXTERNAL=" $ALIAS -external"
10
11
11
12
VALIDITY=1
12
13
PASSWORD=" $ITMO_DATING_KEY_STORE_PASSWORD "
@@ -71,6 +72,9 @@ function generate() {
71
72
-deststoretype JKS \
72
73
-destkeystore " $ALIAS_BACKEND .jks" \
73
74
-deststorepass " $PASSWORD "
75
+
76
+ echo " Copying PKCS12 as external certificate"
77
+ cp " $ALIAS_BACKEND .p12" " $ALIAS_EXTERNAL .p12"
74
78
}
75
79
76
80
function copy() {
@@ -92,6 +96,7 @@ function distribute() {
92
96
93
97
echo " Copying package to the gateway..."
94
98
copy " $GATEWAY_INSTALL_PATH " " $ALIAS_BACKEND .p12"
99
+ copy " $GATEWAY_INSTALL_PATH " " $ALIAS_EXTERNAL .p12"
95
100
96
101
echo " Copying keys to the consul..."
97
102
copy " $CONSUL_INSTALL_PATH " " $ALIAS_BACKEND .key"
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ server:
95
95
ssl :
96
96
enabled : true
97
97
key-store-type : PKCS12
98
- key-store : classpath:keystore/keystore .p12
98
+ key-store : classpath:keystore/itmo-dating-external .p12
99
99
key-store-password : ${KEY_STORE_PASSWORD}
100
100
protocol : TLSv1.3
101
101
enabled-protocols : TLSv1.3
You can’t perform that action at this time.
0 commit comments