Passer au contenu principal
POST
https://{tenantDomain}/api/v2
/
keys
/
encryption
/
{kid}
/
wrapping-key
Go
package example

import (
    context "context"

    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Keys.Encryption.CreatePublicWrappingKey(
        context.TODO(),
        "kid",
    )
}
{
  "public_key": "<string>"
}

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de chemin

kid
string
requis

ID de la clé de chiffrement

Réponse

La clé d’enveloppement publique a été créée avec succès.

algorithm
enum<string>
requis

Algorithme de chiffrement à utiliser pour envelopper le matériel de votre clé

Options disponibles:
CKM_RSA_AES_KEY_WRAP
public_key
string
requis

Clé d’enveloppement publique au format PEM