mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Change certificate notAfter to 90 days
As stated in Let's Encrypt FAQ: https://letsencrypt.org/docs/faq/
This commit is contained in:
parent
e6e8e64f84
commit
48254a1e10
1 changed files with 2 additions and 5 deletions
|
@ -14,9 +14,6 @@
|
||||||
scenario/3,
|
scenario/3,
|
||||||
scenario0/2,
|
scenario0/2,
|
||||||
new_user_scenario/2
|
new_user_scenario/2
|
||||||
%% Not yet implemented
|
|
||||||
%% key_roll_over/5
|
|
||||||
%% delete_authz/3
|
|
||||||
]).
|
]).
|
||||||
|
|
||||||
-include("ejabberd.hrl").
|
-include("ejabberd.hrl").
|
||||||
|
@ -581,8 +578,8 @@ not_before_not_after() ->
|
||||||
%% TODO: Make notBefore and notAfter configurable somewhere
|
%% TODO: Make notBefore and notAfter configurable somewhere
|
||||||
{MegS, Sec, MicS} = erlang:timestamp(),
|
{MegS, Sec, MicS} = erlang:timestamp(),
|
||||||
NotBefore = xmpp_util:encode_timestamp({MegS, Sec, MicS}),
|
NotBefore = xmpp_util:encode_timestamp({MegS, Sec, MicS}),
|
||||||
%% The certificate will be valid for 60 Days after today
|
%% The certificate will be valid for 90 Days after today
|
||||||
NotAfter = xmpp_util:encode_timestamp({MegS+5, Sec+184000, MicS}),
|
NotAfter = xmpp_util:encode_timestamp({MegS+7, Sec+776000, MicS}),
|
||||||
{NotBefore, NotAfter}.
|
{NotBefore, NotAfter}.
|
||||||
|
|
||||||
-spec to_public(jose_jwk:key()) -> jose_jwk:key().
|
-spec to_public(jose_jwk:key()) -> jose_jwk:key().
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue