This is an automated email from the ASF dual-hosted git repository.
dimuthuupe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/develop by this push:
new 917fe22 Updating self signed certificates for ide integration
917fe22 is described below
commit 917fe22b4598a3682a414e2ebcda3ff720c47ab6
Author: Dimuthu Wannipurage <[email protected]>
AuthorDate: Fri Apr 10 01:31:12 2020 -0400
Updating self signed certificates for ide integration
---
modules/ide-integration/README.md | 41 +++++++++++++++++++++
.../src/main/resources/keystores/airavata.jks | Bin 2679 -> 2679 bytes
.../main/resources/keystores/client_truststore.jks | Bin 1027 -> 1258 bytes
3 files changed, 41 insertions(+)
diff --git a/modules/ide-integration/README.md
b/modules/ide-integration/README.md
index c905f13..5a5149a 100644
--- a/modules/ide-integration/README.md
+++ b/modules/ide-integration/README.md
@@ -170,3 +170,44 @@ https://support.google.com/accounts/answer/6010255?hl=en
```
docker-compose rm
```
+
+### NOTE: (Optional) Creating certificates if expired
+
+ * This is required only when the self signed certificate for keycloak is
expired
+ * Go to src/main/resources/keystores
+ * Provide password as airavata for all key stores
+
+ ```
+ rm airavata.jks
+
+ rm client_truststore.jks
+
+ keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks
-storepass airavata -validity 360 -keysize 2048
+ What is your first and last name?
+ [Unknown]: airavata.host
+ What is the name of your organizational unit?
+ [Unknown]: airavata.host
+ What is the name of your organization?
+ [Unknown]: airavata.host
+ What is the name of your City or Locality?
+ [Unknown]: airavata.host
+ What is the name of your State or Province?
+ [Unknown]: airavata.host
+ What is the two-letter country code for this unit?
+ [Unknown]: airavata.host
+ Is CN=airavata.host, OU=airavata.host, O=airavata.host, L=airavata.host,
ST=airavata.host, C=airavata.host correct?
+ [no]: yes
+
+
+ keytool -importkeystore -srckeystore keystore.jks -destkeystore airavata.jks
-deststoretype pkcs12
+
+ rm keystore.jks
+
+ keytool -export -alias selfsigned -file root.cer -keystore airavata.jks
-storepass airavata
+
+ keytool -import -alias mykey -file root.cer -keystore client_truststore.jks
-storepass airavata
+
+ rm root.cer
+
+```
+
diff --git a/modules/ide-integration/src/main/resources/keystores/airavata.jks
b/modules/ide-integration/src/main/resources/keystores/airavata.jks
index b732322..f61304f 100644
Binary files
a/modules/ide-integration/src/main/resources/keystores/airavata.jks and
b/modules/ide-integration/src/main/resources/keystores/airavata.jks differ
diff --git
a/modules/ide-integration/src/main/resources/keystores/client_truststore.jks
b/modules/ide-integration/src/main/resources/keystores/client_truststore.jks
index a7a604c..566784d 100644
Binary files
a/modules/ide-integration/src/main/resources/keystores/client_truststore.jks
and
b/modules/ide-integration/src/main/resources/keystores/client_truststore.jks
differ