summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslavomir.katuscak%sun.com <devnull@localhost>2008-07-10 10:22:11 +0000
committerslavomir.katuscak%sun.com <devnull@localhost>2008-07-10 10:22:11 +0000
commit5e1a8fb6e42019279209ac0a30dc980957552e29 (patch)
treed9846a87f563369ff1504d5aa0d897380ef427bb
parentc0c92e3985a89ce22814e0188b5b99f7c856e6bf (diff)
downloadnss-hg-5e1a8fb6e42019279209ac0a30dc980957552e29.tar.gz
Bug 444308: Fixed certs validity in IOPR tests. r=alexei
-rw-r--r--security/nss/tests/iopr/cert_iopr.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/security/nss/tests/iopr/cert_iopr.sh b/security/nss/tests/iopr/cert_iopr.sh
index 4f195a81c..89867e8f1 100644
--- a/security/nss/tests/iopr/cert_iopr.sh
+++ b/security/nss/tests/iopr/cert_iopr.sh
@@ -289,11 +289,15 @@ download_install_certs() {
certu -R -d "${sslServerDir}" -f "${R_PWFILE}" -z "${R_NOISE_FILE}"\
-o $sslServerDir/req 2>&1
tmpFiles="$tmpFiles $sslServerDir/req"
-
-
+
+ # NOTE:
+ # For possible time synchronization problems (bug 444308) we generate
+ # certificates valid also some time in past (-w -1)
+
CU_ACTION="Sign ${CERTNAME}'s Request (ws: $host)"
- certu -C -c "$caCertName" -m `date +"%s"` -v 60 -d "${caDir}" \
- -i ${sslServerDir}/req -o $caDir/${CERTNAME}.cert \
+ certu -C -c "$caCertName" -m `date +"%s"` -v 60 -w -1 \
+ -d "${caDir}" \
+ -i ${sslServerDir}/req -o $caDir/${CERTNAME}.cert \
-f "${R_PWFILE}" 2>&1
importFile $sslServerDir $caDir/$CERTNAME.cert $CERTNAME ",,"