- [Resource: SmimeInfo](https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo#SmimeInfo)
  - [JSON representation](https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo#SmimeInfo.SCHEMA_REPRESENTATION)
- [Methods](https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo#METHODS_SUMMARY)

## Resource: SmimeInfo

An S/MIME email config.

| JSON representation |
|---|
| ``` { "id": string, "issuerCn": string, "isDefault": boolean, "expiration": string, "encryptedKeyPassword": string, "pem": string, "pkcs12": string } ``` |

| Fields ||
|---|---|
| `id` | `string` The immutable ID for the SmimeInfo. |
| `issuerCn` | `string` The S/MIME certificate issuer's common name. |
| `isDefault` | `boolean` Whether this SmimeInfo is the default one for this user's send-as address. |
| `expiration` | `string (https://developers.google.com/discovery/v1/type-format format)` When the certificate expires (in milliseconds since epoch). |
| `encryptedKeyPassword` | `string` Encrypted key password, when key is encrypted. |
| Union field `key`. The S/MIME "key", which may consist of various combinations of the public key, private key, and certificate chain depending on the format expected and used. `key` can be only one of the following: ||
| `pem` | `string` PEM formatted X509 concatenated certificate string (standard base64 encoding). Format used for returning key, which includes public key as well as certificate chain (not private key). |
| `pkcs12` | `string (https://developers.google.com/discovery/v1/type-format format)` PKCS#12 format containing a single private/public key pair and certificate chain. This format is only accepted from client for creating a new SmimeInfo and is never returned, because the private key is not intended to be exported. PKCS#12 may be encrypted, in which case encryptedKeyPassword should be set appropriately. A base64-encoded string. |

| ## Methods ||
|---|---|
| ### `https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/delete` | Deletes the specified S/MIME config for the specified send-as alias. |
| ### `https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/get` | Gets the specified S/MIME config for the specified send-as alias. |
| ### `https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/insert` | Insert (upload) the given S/MIME config for the specified send-as alias. |
| ### `https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/list` | Lists S/MIME configs for the specified send-as alias. |
| ### `https://developers.google.com/workspace/gmail/api/reference/rest/v1/users.settings.sendAs.smimeInfo/setDefault` | Sets the default S/MIME config for the specified send-as alias. |