[% USE SSL; USE ExpVar; CPANEL.CPVAR.dprefix = '../'; # When the Leika flag is enabled and user doesn't have sslmanager, # redirect to the first available tab they can access SET redirect_url = ''; IF SSL.should_exclude_new_domains() && !CPANEL.feature('sslmanager'); SET has_ssl_install_feature = CPANEL.feature('sslinstall'); SET has_tls_wizard_feature = CPANEL.feature('tls_wizard'); SET has_market_feature = CPANEL.feature('market'); SET has_autossl_feature = CPANEL.feature('autossl'); SET is_ssl_allowed = ExpVar.expand('$isallowedssl'); IF has_ssl_install_feature && has_tls_wizard_feature && has_market_feature; SET redirect_url = '../security/tls_wizard/index.html'; ELSIF has_autossl_feature; SET redirect_url = '../security/tls_status/index.html'; ELSIF has_ssl_install_feature && is_ssl_allowed; SET redirect_url = 'install.html'; END; END; SET old_default = execute_or_die("Variables", "get_user_information", { name => 'ssl_default_key_type' }).data.ssl_default_key_type; # Update user default for ssl key types IF FORM.default_ssl_key_type; SET set_default_key_type_result = execute("SSL", "set_default_key_type", { type => FORM.default_ssl_key_type, }); END; SET key_types_and_labels = SSL.key_types_and_labels; SET opt_system = SSL.key_type_system(); SET system_default = CPANEL.CPCONF.ssl_default_key_type; # These descriptions also exist in # whostmgr/docroot/templates/ng-apps-src/apps/ssl-tls-configuration/src/app/app.component.ts # So updates should be made in both places SET key_descriptions = SSL.key_type_descriptions(); IF set_default_key_type_result && set_default_key_type_result.status; # Because there's a bit of a cache condition, use the value to we # set it to if the api call was successful # see COBRA-11816 SET chosen_default = FORM.default_ssl_key_type; ELSE; SET chosen_default = execute("Variables", "get_user_information", { name => 'ssl_default_key_type' }).data.ssl_default_key_type; END; SET chosen_default_is_custom = (opt_system != chosen_default); SET has_autossl = CPANEL.feature('autossl'); SET show_unified_ssl = SSL.should_exclude_new_domains(); IF show_unified_ssl; SET page_title_text = locale.maketext('SSL/TLS Certificates'); ELSE; SET page_title_text = locale.maketext('SSL/TLS'); END; WRAPPER '_assets/master.html.tt' app_key = 'ssl_tls' page_title = page_title_text embed_stylesheets = ["css/ux-styles.min.css", "css/ssl.css"], embed_scripts = ["js2/ssl/index.js"], page_stylesheets = ['css2-min/ssl/index.css'] -%] [% MACRO current_setting_macro BLOCK -%] [% locale.maketext('Current') %] [% END -%] [% PROCESS '_assets/_ssl_tls_tabs.html.tt' active_tab = 'settings' %] [% IF redirect_url %] [% END %]
[% locale.maketext('The SSL/TLS Manager will allow you to generate SSL certificates, certificate signing requests, and private keys. These are all parts of using SSL to secure your website. SSL allows you to secure pages on your site so that information such as logins, credit card numbers, etc are sent encrypted instead of plain text. It is important to secure your site’s login areas, shopping areas, and other pages where sensitive information could be sent over the web.') %]