https://bugs.contribs.org/show_bug.cgi?id=11436

--- Comment #1 from John Crisp <[email protected]> ---
Going to modify to this:

    if (preg_match('~OpenSSL.* (E.?mail|Personal) .*Certificate~', $certtext))
{
        $cert_type = 'email';
    } 
    if (preg_match('~OpenSSL.* (E.?mail|Personal) .*Certificate~', $certtext)
&& preg_match('~Code Signing~', $certtext)) {
        $cert_type = 'email_signing'; // This was email_code signing but think
that is wrong
    }
    elseif (preg_match('~OpenSSL.* Server .*Certificate~', $certtext)) {
        $cert_type = 'server';
    } 
    elseif (preg_match('~timeStamping|Time Stamping~', $certtext)) {
        $cert_type = 'time_stamping';
    } 
    elseif (preg_match('~TLS Web Client Authentication~', $certtext) &&
preg_match('~TLS Web Server Authentication~', $certtext)) {
        $cert_type = 'vpn_client_server';
    } 
    elseif (preg_match('~TLS Web Client Authentication~', $certtext)) {
        $cert_type = 'vpn_client';
    } 
    elseif (preg_match('~TLS Web Server Authentication~', $certtext)) {
        $cert_type = 'vpn_server';
    } else {
        $cert_type = 'vpn_client_server';
    }

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to