X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=utilities%2Fovs-pki.in;h=bf40c29586f64306d063ccf2ccbbd1636243ae13;hb=93ea780907c2c4315ecc1a3e7823fcba3aba5e96;hp=2a67d5387daa3c5e8aaca1a7e3eeba3c752f4fb9;hpb=e06d06a7b3386cd7a60fae1b77ae0acedf42c3e3;p=sliver-openvswitch.git diff --git a/utilities/ovs-pki.in b/utilities/ovs-pki.in index 2a67d5387..bf40c2958 100755 --- a/utilities/ovs-pki.in +++ b/utilities/ovs-pki.in @@ -512,7 +512,7 @@ elif test "$command" = self-sign; then # Create both the private key and certificate with restricted permissions. (umask 077 && \ openssl x509 -in "$arg1-req.pem" -out "$arg1-cert.pem.tmp" \ - -signkey "$arg1-privkey.pem" -req -text) 2>&3 || exit $? + -signkey "$arg1-privkey.pem" -req -days 2191 -text) 2>&3 || exit $? # Reset the permissions on the certificate to the user's default. cat "$arg1-cert.pem.tmp" > "$arg1-cert.pem"