Skip to content

Commit

Permalink
Merge pull request #192 from hkalina/LOGMGR-200
Browse files Browse the repository at this point in the history
[LOGMGR-200] TLSv1.3 compatible keystores
  • Loading branch information
jamezp authored Aug 10, 2018
2 parents 6733896 + 0f2b54c commit 42fb9c9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
Binary file modified src/test/resources/client-keystore.jks
Binary file not shown.
Binary file modified src/test/resources/client.cer
Binary file not shown.
8 changes: 4 additions & 4 deletions src/test/resources/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,21 @@ deleteFile client.cer

dname="CN=localhost, OU=Server Unit, O=Red Hat, L=Raleigh, S=NC, C=US"
# Create server keystore - file server-keystore.jks
keytool -genkey -v -alias server -keystore server-keystore.jks -validity 3650 -keypass testpassword -storepass testpassword -dname "${dname}"
keytool -genkey -v -alias server -keystore server-keystore.jks -keyalg RSA -validity 3650 -keypass testpassword -storepass testpassword -dname "${dname}"

# Export Server's Public Key - file server.cer
keytool -export -keystore server-keystore.jks -alias server -file server.cer -keypass testpassword -storepass testpassword

# Export Client Key Store - file client-keystore.jsk
keytool -genkey -v -alias client -keystore client-keystore.jks -validity 3650 -keypass testpassword -storepass testpassword -dname "${dname}"
keytool -genkey -v -alias client -keystore client-keystore.jks -keyalg RSA -validity 3650 -keypass testpassword -storepass testpassword -dname "${dname}"

# Exporting Client's Public Key - file client.cer
keytool -export -keystore client-keystore.jks -alias client -file client.cer -keypass testpassword -storepass testpassword

# Importing Client's Public key into server's truststore
keytool -import -v -trustcacerts -alias client -file client.cer -keystore server-keystore.jks -keypass testpassword -storepass testpassword
keytool -import -v -trustcacerts -alias client -file client.cer -keystore server-keystore.jks -keypass testpassword -storepass testpassword -noprompt

# Importing Server's Public key into client's truststore
keytool -import -v -trustcacerts -alias server -file server.cer -keystore client-keystore.jks -keypass testpassword -storepass testpassword
keytool -import -v -trustcacerts -alias server -file server.cer -keystore client-keystore.jks -keypass testpassword -storepass testpassword -noprompt

popd
Binary file modified src/test/resources/server-keystore.jks
Binary file not shown.
Binary file modified src/test/resources/server.cer
Binary file not shown.

0 comments on commit 42fb9c9

Please sign in to comment.