File manager - Edit - /usr/local/cpanel/etc/icontact_templates/AutoSSL/CertificateExpiringDigest.html.tmpl
Back
[%# This template is sent when multiple vhosts fail AutoSSL renewal in a single AutoSSL run (digest mode). Variables passed in: vhost_count - The number of vhosts that failed first_vhost_name - The first vhost name (alphabetically) autossl_provider - The module name of the AutoSSL provider vhost_details - Array of hashes, each with: vhost_name - The vhost name problems - AutoSSL problems for this vhost covered_domains - Domains that will lose coverage vhost_domains - All domains on the vhost certificate - Certificate object (may be undef) remaining_time - Seconds until certificate expires remaining_time_localized - Human-readable time until expiry For more information about how to customize notification templates, read our documentation at https://go.cpanel.net/notificationtemplates -%] [% PROCESS "include/colors.tmpl"; PROCESS "include/styles.tmpl"; PROCESS 'include/zebra_table.tmpl'; PROCESS 'include/code_block.tmpl'; PROCESS 'include/certificate_info_extended.tmpl'; PROCESS 'AutoSSL/includes/autossl_problems_table.tmpl'; PROCESS "SSL/includes/market_upgrade_options.tmpl"; SET NOTICE.email_reason = CPANEL.locale.maketext('[asis,AutoSSL] failed to renew certificates for [numf,_1] [numerate,_1,domain,domains].', NOTICE.vhost_count); WRAPPER 'wrapper/main.html.tmpl'; %] <p> [% CPANEL.locale.maketext('[asis,AutoSSL] [output,strong,failed to renew] certificates for [numf,_1] [numerate,_1,domain,domains], including “[_2]”.', NOTICE.vhost_count, NOTICE.first_vhost_name) %] [% CPANEL.locale.maketext('You must take action to keep [numerate,_1,this site,these sites] secure.', NOTICE.vhost_count) %] </p> <p> [% CPANEL.locale.maketext('The “[_1]” [asis,AutoSSL] provider could not renew certificates for the following [numerate,_2,domain,domains]:', NOTICE.autossl_provider, NOTICE.vhost_count) %] </p> <p> [% CPANEL.locale.maketext('For the most current status, navigate to the “[output,url,_1,SSL/TLS Certificates]” interface. You can also exclude domains from future renewal attempts, which would cease future notifications.', NOTICE.ssl_tls_status_url) %] </p> [% FOREACH vhost_detail IN NOTICE.vhost_details %] <hr style="border: 0; border-top: 2px solid [% medium_gray %]; margin: 20px 0;" /> <h3>[% vhost_detail.vhost_name.html() %]</h3> [% IF vhost_detail.notify_type == 'CertificateExpiringCoverage' %] <p> [% CPANEL.locale.maketext('[asis,AutoSSL] did [output,strong,not] renew the certificate for “[_1]” because one or more currently secured domains failed [output,abbr,DCV,Domain Control Validation].', vhost_detail.vhost_name) %] </p> <p> [% CPANEL.locale.maketext('[output,strong,Reason:] Renewing now would reduce [asis,SSL] coverage because one or more currently secured domains failed [asis,DCV].') %] [% CPANEL.locale.maketext('[output,strong,Next action:] Resolve the [asis,DCV] failures in “[output,url,_1,SSL/TLS Certificates]”, then run [asis,AutoSSL] again.', NOTICE.ssl_tls_status_url) %] </p> [% ELSIF vhost_detail.notify_type == 'CertificateRenewalCoverage' %] <p> [% CPANEL.locale.maketext('[asis,AutoSSL] did [output,strong,not] replace the certificate for “[_1]”. The system deferred adding [numerate,_2,new domain,new domains] because one or more currently secured domains failed [output,abbr,DCV,Domain Control Validation].', vhost_detail.vhost_name, vhost_detail.uncovered_domains.size) %] </p> <p> [% CPANEL.locale.maketext('[output,strong,Reason:] The current certificate remains active while [asis,AutoSSL] defers adding new domains because one or more secured domains failed [asis,DCV].') %] [% CPANEL.locale.maketext('[output,strong,Next action:] Resolve the [asis,DCV] failures and review “[output,url,_1,SSL/TLS Certificates]” for the current renewal status.', NOTICE.ssl_tls_status_url) %] </p> [% ELSE %] <p> [% CPANEL.locale.maketext('[asis,AutoSSL] did [output,strong,not] renew the certificate for “[_1]”. [output,strong,You must take action to keep this site secure.]', vhost_detail.vhost_name) %] </p> <p> [% CPANEL.locale.maketext('[output,strong,Reason:] [asis,AutoSSL] could not renew this certificate because all domains on this virtual host failed [output,abbr,DCV,Domain Control Validation].') %] [% CPANEL.locale.maketext('[output,strong,Next action:] Resolve the [asis,DCV] failures in “[output,url,_1,SSL/TLS Certificates]”, then run [asis,AutoSSL] again.', NOTICE.ssl_tls_status_url) %] </p> [% END %] [% IF vhost_detail.certificate %] <p> [% IF vhost_detail.remaining_time > 0 %] [% CPANEL.locale.maketext('The certificate expires on [datetime,_1,date_format_medium] at [datetime,_1,time_format_medium] [asis,UTC]. At the time of this notice, the certificate will expire in [comment,length of time for example 2 days and 1 second][_2].', 1 + vhost_detail.certificate.not_after(), vhost_detail.remaining_time_localized ) %] [% ELSE %] <span style="color: [% dark_red %]"> [% CPANEL.locale.maketext('The certificate expired on [datetime,_1,date_format_medium] at [datetime,_1,time_format_medium] [asis,UTC]. At the time of this notice, the certificate expired [comment,length of time for example 2 days and 1 second][_1] ago.', vhost_detail.remaining_time_localized.remove('^-') ) %] </span> [% END %] </p> [% END %] [% IF vhost_detail.problems && vhost_detail.problems.size %] [% SET autossl_problems = vhost_detail.problems; SET autossl_provider = NOTICE.autossl_provider; SET ssl_tls_status_url = NOTICE.ssl_tls_status_url; IF vhost_detail.notify_type == 'CertificateRenewalCoverage'; SET autossl_problems = vhost_detail.old_dcv_problems; SET autossl_filter_domains = ''; autossl_problems_table(); ELSE; SET autossl_filter_domains = ''; autossl_problems_table( autossl_problems=autossl_problems, autossl_provider=autossl_provider, ssl_tls_status_url=ssl_tls_status_url ); END; %] [% END %] [% IF vhost_detail.notify_type == 'CertificateRenewalCoverage' && vhost_detail.uncovered_domains.size %] <p> [% CPANEL.locale.maketext('The next time that the “[_1]” [asis,AutoSSL] provider attempts to renew the [asis,SSL] certificate, the system will attempt to add the following [numerate,_2,domain,domains] to that certificate:', NOTICE.autossl_provider, vhost_detail.uncovered_domains.size) %] </p> <ul> [% FOR d IN vhost_detail.uncovered_domains -%] <li> <a href="https://[% d.name.html() %]">[% d.name.html() %]</a> </li> [% END -%] </ul> [% ELSIF vhost_detail.covered_domains.size %] <p> [% IF vhost_detail.remaining_time && vhost_detail.remaining_time > 0 %] [% CPANEL.locale.maketext('The following [numerate,_1,domain,domains] will lose [asis,SSL] coverage when the certificate expires:', vhost_detail.covered_domains.size) %] [% ELSE %] <span style="color: [% dark_red %]">[% CPANEL.locale.maketext('The following [numerate,_1,domain,domains] lost [asis,SSL] coverage when the certificate expired:', vhost_detail.covered_domains.size) %]</span> [% END %] </p> <ul> [% FOR d IN vhost_detail.covered_domains -%] <li> <a href="https://[% d.name.html() %]">[% d.name.html() %]</a> </li> [% END -%] </ul> [% END %] [% IF vhost_detail.certificate %] [% CPANEL.locale.maketext('The certificate that is installed on this website contains the following properties:') %] [% certificate_info_extended( certificate=vhost_detail.certificate ) %] [% market_upgrade_options( enabled_providers_count=NOTICE.enabled_providers_count, ssl_tls_wizard_url=NOTICE.ssl_tls_wizard_url, certificate=vhost_detail.certificate ); %] [% END %] [% END %] [% END #wrapper %]
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.04 |
proxy
|
phpinfo
|
Settings