private function getCSRPayload(DistinguishedName $distinguishedName)
    {
        $payload = [];
        if (null !== $countryName = $distinguishedName->getCountryName()) {
            $payload['countryName'] = $countryName;
        }
        if (null !== $stateOrProvinceName = $distinguishedName->getStateOrProvinceName()) {
            $payload['stateOrProvinceName'] = $stateOrProvinceName;
        }
        if (null !== $localityName = $distinguishedName->getLocalityName()) {
            $payload['localityName'] = $localityName;
        }
        if (null !== $OrganizationName = $distinguishedName->getOrganizationName()) {
            $payload['organizationName'] = $OrganizationName;
        }
        if (null !== $organizationUnitName = $distinguishedName->getOrganizationalUnitName()) {
            $payload['organizationalUnitName'] = $organizationUnitName;
        }
        if (null !== $commonName = $distinguishedName->getCommonName()) {
            $payload['commonName'] = $commonName;
        }
        if (null !== $emailAddress = $distinguishedName->getEmailAddress()) {
            $payload['emailAddress'] = $emailAddress;
        }

        return $payload;
    }