---
title: X509Name type | Wartiva GraphQL API
description: Name represents an X.509 distinguished name. This only includes the common elements of a DN. Note that Name is only an approximation of the X.509 structure.
url: https://wartiva.com/api-docs/types/x509-name.html
updated: 2026-10-07
---

Networks, devices, and sensors · GraphQL type

# `X509Name` type

Name represents an X.509 distinguished name. This only includes the common elements of a DN. Note that Name is only an approximation of the X.509 structure.

## Fields

| Field Name | Description |
|---|---|
| `country` - [`[String!]`](https://wartiva.com/api-docs/types/string.html) | Country names, represented as two-letter country codes (e.g., 'US', 'GB') |
| `organization` - [`[String!]`](https://wartiva.com/api-docs/types/string.html) | Organization names (e.g., company names) |
| `organizationalUnit` - [`[String!]`](https://wartiva.com/api-docs/types/string.html) | Organizational unit names within the organization (e.g., department names) |
| `locality` - [`[String!]`](https://wartiva.com/api-docs/types/string.html) | City or locality names |
| `province` - [`[String!]`](https://wartiva.com/api-docs/types/string.html) | State or province names |
| `streetAddress` - [`[String!]`](https://wartiva.com/api-docs/types/string.html) | Street addresses of the organization |
| `postalCode` - [`[String!]`](https://wartiva.com/api-docs/types/string.html) | Postal codes or ZIP codes |
| `serialNumber` - [`String`](https://wartiva.com/api-docs/types/string.html) | Certificate serial number as a string |
| `commonName` - [`String`](https://wartiva.com/api-docs/types/string.html) | Common name (CN) of the certificate subject (e.g., domain name for SSL certificates) |

## Used by

- [`TLSCertificate`](https://wartiva.com/api-docs/types/tls-certificate.html) type: Information describing an SSL (Secure Sockets Layer) certificate.

## Example

### Example

```json
{
  "country": ["abc123"],
  "organization": ["xyz789"],
  "organizationalUnit": ["xyz789"],
  "locality": ["xyz789"],
  "province": ["xyz789"],
  "streetAddress": ["xyz789"],
  "postalCode": ["xyz789"],
  "serialNumber": "xyz789",
  "commonName": "abc123"
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
