You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2021/06/05 03:04:33 UTC

[james-project] 06/11: JAMES-3261 Indicate in READMEs how to set up custom keystore

This is an automated email from the ASF dual-hosted git repository.

btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git

commit ba66d12ed9647e5a442a48877807ae4d709f8f64
Author: Benoit Tellier <bt...@linagora.com>
AuthorDate: Sat May 29 14:17:58 2021 +0700

    JAMES-3261 Indicate in READMEs how to set up custom keystore
---
 server/container/guice/cassandra-guice/README.adoc          | 8 ++++++++
 server/container/guice/cassandra-rabbitmq-guice/README.adoc | 8 ++++++++
 server/container/guice/jpa-guice/README.adoc                | 8 ++++++++
 server/container/guice/jpa-smtp/README.adoc                 | 9 +++++++++
 server/container/guice/memory-guice/README.md               | 8 ++++++++
 5 files changed, 41 insertions(+)

diff --git a/server/container/guice/cassandra-guice/README.adoc b/server/container/guice/cassandra-guice/README.adoc
index 840728c..24d6ec9 100644
--- a/server/container/guice/cassandra-guice/README.adoc
+++ b/server/container/guice/cassandra-guice/README.adoc
@@ -64,6 +64,14 @@ Then run it:
 docker run apache/james:cassandra-latest
 ----
 
+For security reasons you are required to generate your own keystore, that you can mount into the container via a volume:
+
+[source]
+----
+keytool -genkey -alias james -keyalg RSA -keystore keystore
+docker run -v $PWD/keystore:/root/conf/keystore docker run apache/james:cassandra-latest
+----
+
 Use the [JAVA_TOOL_OPTIONS environment option](https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#jvm-flags)
 to pass extra JVM flags. For instance:
 
diff --git a/server/container/guice/cassandra-rabbitmq-guice/README.adoc b/server/container/guice/cassandra-rabbitmq-guice/README.adoc
index 982334e..8c4905e 100644
--- a/server/container/guice/cassandra-rabbitmq-guice/README.adoc
+++ b/server/container/guice/cassandra-rabbitmq-guice/README.adoc
@@ -61,6 +61,14 @@ Then run it:
 docker run apache/james:distributed-latest
 ----
 
+For security reasons you are required to generate your own keystore, that you can mount into the container via a volume:
+
+[source]
+----
+keytool -genkey -alias james -keyalg RSA -keystore keystore
+docker run -v $PWD/keystore:/root/conf/keystore docker run apache/james:distributed-latest
+----
+
 Use the [JAVA_TOOL_OPTIONS environment option](https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#jvm-flags)
 to pass extra JVM flags. For instance:
 
diff --git a/server/container/guice/jpa-guice/README.adoc b/server/container/guice/jpa-guice/README.adoc
index 5f9b170..ed72deb 100644
--- a/server/container/guice/jpa-guice/README.adoc
+++ b/server/container/guice/jpa-guice/README.adoc
@@ -54,6 +54,14 @@ to pass extra JVM flags. For instance:
 docker run -e "JAVA_TOOL_OPTIONS=-Xmx500m -Xms500m" apache/james:jpa-latest
 ----
 
+For security reasons you are required to generate your own keystore, that you can mount into the container via a volume:
+
+[source]
+----
+keytool -genkey -alias james -keyalg RSA -keystore keystore
+docker run -v $PWD/keystore:/root/conf/keystore docker run apache/james:jpa-latest
+----
+
 [Glowroot APM](https://glowroot.org/) is packaged as part of the docker distribution to easily enable valuable performances insights.
 Disabled by default, its java agent can easily be enabled:
 
diff --git a/server/container/guice/jpa-smtp/README.adoc b/server/container/guice/jpa-smtp/README.adoc
index c3bc6d5..f950870 100644
--- a/server/container/guice/jpa-smtp/README.adoc
+++ b/server/container/guice/jpa-smtp/README.adoc
@@ -48,6 +48,15 @@ Then run it:
 docker run apache/james:jpa-smtp-latest
 ----
 
+
+For security reasons you are required to generate your own keystore, that you can mount into the container via a volume:
+
+[source]
+----
+keytool -genkey -alias james -keyalg RSA -keystore keystore
+docker run -v $PWD/keystore:/root/conf/keystore docker run apache/james:jpa-smtp-latest
+----
+
 Use the [JAVA_TOOL_OPTIONS environment option](https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#jvm-flags)
 to pass extra JVM flags. For instance:
 
diff --git a/server/container/guice/memory-guice/README.md b/server/container/guice/memory-guice/README.md
index 78c6534..91e48db 100644
--- a/server/container/guice/memory-guice/README.md
+++ b/server/container/guice/memory-guice/README.md
@@ -24,6 +24,14 @@ Then run it:
 docker run apache/james:memory-latest
 ```
 
+
+For security reasons you are required to generate your own keystore, that you can mount into the container via a volume:
+
+```
+keytool -genkey -alias james -keyalg RSA -keystore keystore
+docker run -v $PWD/keystore:/root/conf/keystore docker run apache/james:cassandra-latest
+```
+
 Use the [JAVA_TOOL_OPTIONS environment option](https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#jvm-flags) 
 to pass extra JVM flags. For instance:
 

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org