/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo
POST
/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfoInsert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.
Request
The user's email address. The special value me
can be used to indicate the authenticated user.
The email address that appears in the "From:" header for mail sent using this alias.
Encrypted key password, when key is encrypted.
When the certificate expires (in milliseconds since epoch).
The immutable ID for the SmimeInfo.
Whether this SmimeInfo is the default one for this user's send-as address.
The S/MIME certificate issuer's common name.
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).
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.
Request samples
Responses
Encrypted key password, when key is encrypted.
When the certificate expires (in milliseconds since epoch).
The immutable ID for the SmimeInfo.
Whether this SmimeInfo is the default one for this user's send-as address.
The S/MIME certificate issuer's common name.
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).
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.
{
"encryptedKeyPassword": "string",
"expiration": "string",
"id": "string",
"isDefault": true,
"issuerCn": "string",
"pem": "string",
"pkcs12": "string"
}