folly::ssl::OpenSSLCertUtils::getCommonName

Returns the certificate's common name, if present.

Synopsis

Declared in <folly/ssl/OpenSSLCertUtils.h>

static
Optional<std::string>
getCommonName(X509 const& x509);

Return Value

The common name, or folly::none.

Parameters

NameDescription
x509The certificate to read.