ovs-pki: Reduce CA certificate validity to 10 years to fix 32-bit OpenSSL.
authorBen Pfaff <blp@nicira.com>
Wed, 8 May 2013 17:20:10 +0000 (10:20 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 8 May 2013 17:29:10 +0000 (10:29 -0700)
commitd652859bfd3fd81f3db9344ae5760ba756600b97
tree350c461dd09eb6a12c415bca38d218936e01fe9b
parent557323cd11f0b02c0dc755f65699895df02781de
ovs-pki: Reduce CA certificate validity to 10 years to fix 32-bit OpenSSL.

Before I applied this commit, when I generated CA certificate with OpenSSL
0.9.8o on my 32-bit Debian system, I got a certificate that expired
sometime in 1977.  This made all SSL-based tests fail with an invalid
certificate.

32-bit time_t only extends to 2038, so this must be a bug in OpenSSL.
This commit works around the problem by reducing the validity period of
certificates to 10 years.

CC: Gurucharan Shetty <gshetty@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-pki.in