aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2019-08-20 13:50:05 +0200
committerIngela Anderton Andin <[email protected]>2019-08-21 10:14:12 +0200
commit5451bb1dd5a831704c9ec2d7eda940c4c3496d43 (patch)
tree17da32756d95bf34ef24102c2f3db95219dbbf5d
parent196327a132934fabe283946a576a345f76eec685 (diff)
downloadotp-5451bb1dd5a831704c9ec2d7eda940c4c3496d43.tar.gz
otp-5451bb1dd5a831704c9ec2d7eda940c4c3496d43.tar.bz2
otp-5451bb1dd5a831704c9ec2d7eda940c4c3496d43.zip
public_key: Use another time in test certificates
Some OpenSSL versions has problems handling the current selected time causing interop tests to fail.
-rw-r--r--lib/public_key/src/pubkey_cert.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public_key/src/pubkey_cert.erl b/lib/public_key/src/pubkey_cert.erl
index 12c61e158f..d85f322918 100644
--- a/lib/public_key/src/pubkey_cert.erl
+++ b/lib/public_key/src/pubkey_cert.erl
@@ -1169,7 +1169,7 @@ validity(Opts) ->
Format =
fun({Y,M,D}) ->
lists:flatten(
- io_lib:format("~4..0w~2..0w~2..0w000000Z",[Y,M,D]))
+ io_lib:format("~4..0w~2..0w~2..0w130000Z",[Y,M,D]))
end,
#'Validity'{notBefore={generalTime, Format(DefFrom)},
notAfter ={generalTime, Format(DefTo)}}.