Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
[fix] keytool seems to use the timestamp as a seed for generating ser…
…ial numbers for certificates.

This leads to different certificates with the same serial number when generating them in quick succession. >:(
  • Loading branch information
smee committed Aug 25, 2010
1 parent c9797ae commit 092a615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examServer/src/main/scripts/createCertificates.sh 100755 → 100644
Expand Up @@ -26,7 +26,7 @@ clientalias="clientCert"

echo "Generating new server certificate key..."
keytool -genkeypair -alias ${serveralias} -keyalg RSA -validity 365 -keystore server.keystore -dname cn="${commonname}",o="${ownername}",l="${location}" -keypass ${password} -storepass ${password}

sleep 1
echo "Generating new client certificate key..."
keytool -genkeypair -alias ${clientalias} -keyalg RSA -validity 365 -storetype pkcs12 -keystore clientcertificate.p12 -dname cn="${commonname}",o="${ownername}",l="${location}" -storepass ${password} -keypass ${password}

Expand Down

0 comments on commit 092a615

Please sign in to comment.