Menu="OtherSettings" Type="xmenu" Title="Management Access" Icon="icon-key" Tag="expeditedssl" --- /dev/null|sed -n 's/ *commonName *= //p'"); $certIssuer = exec("/usr/bin/openssl x509 -in $certFile -noout -text | sed -n -e 's/^.*Issuer: //p'"); $certExpires = exec("/usr/bin/openssl x509 -in $certFile -noout -text | sed -n -e 's/^.*Not After : //p'"); $isLegacyCert = preg_match('/.*\.unraid\.net$/', $certSubject); $isWildcardCert = preg_match('/.*\.myunraid\.net$/', $certSubject); $isLEcert = $isLegacyCert || $isWildcardCert; $subjectURL = $certSubject; if ($isLEcert) { if ($isWildcardCert) $subjectURL = str_replace("*", str_replace(".", "-", $addr), $subjectURL); exec("openssl x509 -checkend 2592000 -noout -in $certFile 2>/dev/null", $arrout, $retval_expired); $protocol = $$ethX['PROTOCOL:0']=='ipv6' ? '-6' : '-4'; $rebindtest_ip = exec("host $protocol rebindtest.unraid.net 2>/dev/null|awk '{print \$4}'"); $dnsRebindingProtection = ($rebindtest_ip != $rebindip); if (!$dnsRebindingProtection) { $certtest_ip = exec("host $protocol $subjectURL 2>/dev/null|awk '{print \$4}'"); $dnsValid = $certtest_ip==$addr; } // more: similar test for "www.$certSubject" dns valid goes here } $cert_time_format = $display['date'].($display['date']!='%c' ? ', '.str_replace(['%M','%R'],['%M:%S','%R:%S'],$display['time']):''); } $provisionlabel = $isLEcert ? _('Renew') : _('Provision'); $disabled_provision = !$isRegistered || $keyfile===false || ($isLEcert && $retval_expired===0) ? 'disabled' : ''; $disabled_updatedns = $isRegistered && $keyfile!==false && $isLEcert ? '' : 'disabled'; $disabled_delete = $certPresent && $var['USE_SSL']!='auto' ? '' : 'disabled'; $disabled_auto = $isRegistered && $isLEcert && !$dnsRebindingProtection && $dnsValid ? '' : 'disabled'; $upgradelabel = _('Upgrade Cert'); // Get ports in use $portsInUse = []; exec("lsof -Pni|awk '/LISTEN/ && \$9!~/127.0.0.1/ && \$9!~/\\[::1\\]/{print \$9}'|sort -u", $output); $bind = $var['BIND_MGT']=='yes'; $list = ['*',$addr]; foreach ($output as $line) { [$ip, $port] = my_explode(':', $line); if (!in_array($port,$portsInUse) && (!$bind || in_array(plain($ip),$list))) $portsInUse[] = $port; } ?>
_(User 'root')_: : [_(Manage)_](/Settings/Users/ManagementAccess/UserEdit?name=root) _(Start page)_: : :mgmt_start_page_help: _(Use TELNET)_: : :mgmt_use_telnet_help: _(TELNET port)_: : :mgmt_telnet_port_help: _(Use SSH)_: : :mgmt_use_ssh_help: _(SSH port)_: : :mgmt_ssh_port_help: _(Use UPnP)_: : :mgmt_use_upnp_help: _(Use SSL/TLS)_: : :mgmt_use_ssl_tls_help: _(HTTP port)_: : :mgmt_http_port_help: _(HTTPS port)_: : :mgmt_https_port_help: _(Local TLD)_: : :mgmt_local_tld_help:   :
_(CA-signed certificate file)_: : _(Certificate subject)_: : [](https://:) _(Certificate issuer)_: : _(Certificate expiration)_: :   : _(DNS Rebinding Protection is ENABLED)_   : _(DNS Propagation is PENDING)_ _(CA-signed certificate file)_: : _(Not present)_   : _(You must be signed in to Unraid.net in order to generate an Unraid.net SSL certificate)_   :   : :mgmt_certificate_expiration_help: