From 2e477b87c27067ee8de55586d9fcd9028802f3e6 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Mon, 25 Jan 2010 11:24:35 +0000 Subject: [PATCH] Added an instruction to generate a certificate when it expires (maybe in 98 years?) --- .../netty/example/securechat/SecureChatKeyStore.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/org/jboss/netty/example/securechat/SecureChatKeyStore.java b/src/main/java/org/jboss/netty/example/securechat/SecureChatKeyStore.java index 84faa6d635..d7fc2cb675 100644 --- a/src/main/java/org/jboss/netty/example/securechat/SecureChatKeyStore.java +++ b/src/main/java/org/jboss/netty/example/securechat/SecureChatKeyStore.java @@ -22,6 +22,14 @@ import java.io.InputStream; * A bogus key store which provides all the required information to * create an example SSL connection. * + * To generate a bogus key store: + *
+ * keytool  -genkey -alias securechat -keysize 2048 -validity 36500
+ *          -keyalg RSA -dname "CN=securechat"
+ *          -keypass secret -storepass secret
+ *          -keystore cert.jks
+ * 
+ * * @author The Netty Project (netty-dev@lists.jboss.org) * @author Trustin Lee (trustin@gmail.com) *