hey there!

I'm a newby in D and vibe.d.

currently I can't even understand how to get field names and values of clientCertificate.

void handleRequest(scope HTTPServerRequest req, scope HTTPServerResponse res)
{
    // trynna get fields, newby way
    foreach (i, key; req.clientCertificate.subjectName) {
        logInfo(i ~ ": " ~ key);
    }

    // some logic is supposed to be here to answer to authorized clients
}

I realize that subjectName's type is DictionaryList but I can't get through http://vibed.org/api/vibe.utils.dictionarylist/DictionaryList at now.

any help is appreciated.