Gérer les CA
Vous pouvez gérer les Autorités de certification (CA) dans le but de les utiliser comme critères pour vos règles d’accès API. Pour en savoir plus, voir À propos des règles d’accès API.
|
L’utilisation d’autorités de certification (CA) pour les règles d’accès API est obsolète et atteindra sa fin de vie (EOL) d’ici fin juin 2027. Vous ne devriez utiliser les règles d’accès API que pour le filtrage par IP. Vous pouvez toujours protéger l’utilisation de certaines méthodes API avec une politique d’accès API et une session de confiance. Pour en savoir plus, voir À propos de votre politique d’accès API. |
Gérer les CA avec octl
Créer une CA
|
L’utilisation d’autorités de certification (CA) pour les règles d’accès API est obsolète et atteindra sa fin de vie (EOL) d’ici fin juin 2027. |
|
À ce jour, cette section est disponible en anglais uniquement. |
The CreateCa command creates a Client Certificate Authority (CA).
For more information, see About API Access Rules. > Deprecated: This call is deprecated and will be removed.
$ octl iaas api CreateCa --profile "default" \
--CaPem ca-certificate.pem \
--Description "CA example"
This command contains the following options that you need to specify:
-
CaPem: The CA in PEM format. -
Description: (optional) The description of the CA. -
DryRun: (optional) If true, checks whether you have the required permissions to perform the action.
The CreateCa command returns the following elements:
-
Ca: Information about the Client Certificate Authority (CA).-
CaFingerprint: The fingerprint of the CA. -
CaId: The ID of the CA. -
Description: The description of the CA.
-
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"Ca": {
"Description": "CA example",
"CaId": "ca-fedcba0987654321fedcba0987654321",
"CaFingerprint": "1234567890abcdef1234567890abcdef12345678"
}
}
Obtenir des informations sur vos CA
|
L’utilisation d’autorités de certification (CA) pour les règles d’accès API est obsolète et atteindra sa fin de vie (EOL) d’ici fin juin 2027. |
|
À ce jour, cette section est disponible en anglais uniquement. |
The ReadCas command gets information about one or more of your Client Certificate Authorities (CAs). > Deprecated: This call is deprecated and will be removed.
$ octl iaas api ReadCas --profile "default" \
--Filters.CaIds "ca-fedcba0987654321fedcba0987654321"
This command contains the following options that you need to specify:
-
DryRun: (optional) If true, checks whether you have the required permissions to perform the action. -
Filters.CaFingerprints: (optional) The fingerprints of the CAs. -
Filters.CaIds: (optional) The IDs of the CAs. -
Filters.Descriptions: (optional) The descriptions of the CAs.
The ReadCas command returns the following elements:
-
Cas: Information about one or more CAs.-
CaFingerprint: The fingerprint of the CA. -
CaId: The ID of the CA. -
Description: The description of the CA.
-
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"Cas": [
{
"Description": "CA example",
"CaId": "ca-fedcba0987654321fedcba0987654321",
"CaFingerprint": "1234567890abcdef1234567890abcdef12345678"
}
]
}
Modifier une CA
|
L’utilisation d’autorités de certification (CA) pour les règles d’accès API est obsolète et atteindra sa fin de vie (EOL) d’ici fin juin 2027. |
|
À ce jour, cette section est disponible en anglais uniquement. |
The UpdateCa command modifies the specified attribute of a Client Certificate Authority (CA). > Deprecated: This call is deprecated and will be removed.
$ octl iaas api UpdateCa --profile "default" \
--CaId "ca-fedcba0987654321fedcba0987654321" \
--Description "New description"
This command contains the following options that you need to specify:
-
CaId: The ID of the CA. -
Description: (optional) The description of the CA. -
DryRun: (optional) If true, checks whether you have the required permissions to perform the action.
The UpdateCa command returns the following elements:
-
Ca: Information about the Client Certificate Authority (CA).-
CaFingerprint: The fingerprint of the CA. -
CaId: The ID of the CA. -
Description: The description of the CA.
-
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"Ca": {
"Description": "New description",
"CaId": "ca-fedcba0987654321fedcba0987654321",
"CaFingerprint": "1234567890abcdef1234567890abcdef12345678"
}
}
Supprimer une CA
|
À ce jour, cette section est disponible en anglais uniquement. |
The DeleteCa command deletes a specified Client Certificate Authority (CA). > Deprecated: This call is deprecated and will be removed.
$ octl iaas api DeleteCa --profile "default" \
--CaId "ca-fedcba0987654321fedcba0987654321"
This command contains the following options that you need to specify:
-
CaId: The ID of the CA you want to delete. -
DryRun: (optional) If true, checks whether you have the required permissions to perform the action.
The DeleteCa command returns the following elements:
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Gérer les CA avec OSC CLI
Créer une CA
|
L’utilisation d’autorités de certification (CA) pour les règles d’accès API est obsolète et atteindra sa fin de vie (EOL) d’ici fin juin 2027. |
|
À ce jour, cette section est disponible en anglais uniquement. |
The CreateCa command creates a Client Certificate Authority (CA).
For more information, see About API Access Rules. > Deprecated: This call is deprecated and will be removed.
$ osc-cli api CreateCa --profile "default" \
--CaPem="$(cat ca-certificate.pem)" \
--Description "CA example"
$ osc-cli api CreateCa --profile "default" --authentication-method "password" --login "$OSC_LOGIN" --password "$OSC_PASSWORD" \
--CaPem="$(cat ca-certificate.pem)" \
--Description "CA example"
|
Note regarding |
This command contains the following options that you need to specify:
-
CaPem: The CA in PEM format. -
Description: (optional) The description of the CA. -
DryRun: (optional) If true, checks whether you have the required permissions to perform the action.
The CreateCa command returns the following elements:
-
Ca: Information about the Client Certificate Authority (CA).-
CaFingerprint: The fingerprint of the CA. -
CaId: The ID of the CA. -
Description: The description of the CA.
-
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"Ca": {
"Description": "CA example",
"CaId": "ca-fedcba0987654321fedcba0987654321",
"CaFingerprint": "1234567890abcdef1234567890abcdef12345678"
}
}
Obtenir des informations sur vos CA
|
L’utilisation d’autorités de certification (CA) pour les règles d’accès API est obsolète et atteindra sa fin de vie (EOL) d’ici fin juin 2027. |
|
À ce jour, cette section est disponible en anglais uniquement. |
The ReadCas command gets information about one or more of your Client Certificate Authorities (CAs). > Deprecated: This call is deprecated and will be removed.
$ osc-cli api ReadCas --profile "default" \
--Filters '{
"CaIds": ["ca-fedcba0987654321fedcba0987654321"]
}'
$ osc-cli api ReadCas --profile "default" --authentication-method "password" --login "$OSC_LOGIN" --password "$OSC_PASSWORD" \
--Filters '{
"CaIds": ["ca-fedcba0987654321fedcba0987654321"]
}'
This command contains the following options that you need to specify:
-
DryRun: (optional) If true, checks whether you have the required permissions to perform the action. -
Filters: (optional) One or more filters.-
CaFingerprints: (optional) The fingerprints of the CAs. -
CaIds: (optional) The IDs of the CAs. -
Descriptions: (optional) The descriptions of the CAs.
-
The ReadCas command returns the following elements:
-
Cas: Information about one or more CAs.-
CaFingerprint: The fingerprint of the CA. -
CaId: The ID of the CA. -
Description: The description of the CA.
-
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"Cas": [
{
"Description": "CA example",
"CaId": "ca-fedcba0987654321fedcba0987654321",
"CaFingerprint": "1234567890abcdef1234567890abcdef12345678"
}
]
}
Modifier une CA
|
L’utilisation d’autorités de certification (CA) pour les règles d’accès API est obsolète et atteindra sa fin de vie (EOL) d’ici fin juin 2027. |
|
À ce jour, cette section est disponible en anglais uniquement. |
The UpdateCa command modifies the specified attribute of a Client Certificate Authority (CA). > Deprecated: This call is deprecated and will be removed.
$ osc-cli api UpdateCa --profile "default" \
--CaId "ca-fedcba0987654321fedcba0987654321" \
--Description "New description"
$ osc-cli api UpdateCa --profile "default" --authentication-method "password" --login "$OSC_LOGIN" --password "$OSC_PASSWORD" \
--CaId "ca-fedcba0987654321fedcba0987654321" \
--Description "New description"
This command contains the following options that you need to specify:
-
CaId: The ID of the CA. -
Description: (optional) The description of the CA. -
DryRun: (optional) If true, checks whether you have the required permissions to perform the action.
The UpdateCa command returns the following elements:
-
Ca: Information about the Client Certificate Authority (CA).-
CaFingerprint: The fingerprint of the CA. -
CaId: The ID of the CA. -
Description: The description of the CA.
-
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"Ca": {
"Description": "New description",
"CaId": "ca-fedcba0987654321fedcba0987654321",
"CaFingerprint": "1234567890abcdef1234567890abcdef12345678"
}
}
Supprimer une CA
|
À ce jour, cette section est disponible en anglais uniquement. |
The DeleteCa command deletes a specified Client Certificate Authority (CA). > Deprecated: This call is deprecated and will be removed.
$ osc-cli api DeleteCa --profile "default" \
--CaId "ca-fedcba0987654321fedcba0987654321"
$ osc-cli api DeleteCa --profile "default" --authentication-method "password" --login "$OSC_LOGIN" --password "$OSC_PASSWORD" \
--CaId "ca-fedcba0987654321fedcba0987654321"
This command contains the following options that you need to specify:
-
CaId: The ID of the CA you want to delete. -
DryRun: (optional) If true, checks whether you have the required permissions to perform the action.
The DeleteCa command returns the following elements:
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Gérer les CA avec oapi-cli
Créer une CA
|
L’utilisation d’autorités de certification (CA) pour les règles d’accès API est obsolète et atteindra sa fin de vie (EOL) d’ici fin juin 2027. |
|
À ce jour, cette section est disponible en anglais uniquement. |
The CreateCa command creates a Client Certificate Authority (CA).
For more information, see About API Access Rules. > Deprecated: This call is deprecated and will be removed.
$ oapi-cli --profile "default" CreateCa \
--CaPem --file "ca-certificate.pem" \
--Description "CA example"
$ oapi-cli --profile "default" --login "$OSC_LOGIN" --password "$OSC_PASSWORD" CreateCa \
--CaPem --file "ca-certificate.pem" \
--Description "CA example"
This command contains the following options that you need to specify:
-
CaPem: The CA in PEM format. -
Description: (optional) The description of the CA. -
DryRun: (optional) If true, checks whether you have the required permissions to perform the action.
The CreateCa command returns the following elements:
-
Ca: Information about the Client Certificate Authority (CA).-
CaFingerprint: The fingerprint of the CA. -
CaId: The ID of the CA. -
Description: The description of the CA.
-
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"Ca": {
"Description": "CA example",
"CaId": "ca-fedcba0987654321fedcba0987654321",
"CaFingerprint": "1234567890abcdef1234567890abcdef12345678"
}
}
Obtenir des informations sur vos CA
|
L’utilisation d’autorités de certification (CA) pour les règles d’accès API est obsolète et atteindra sa fin de vie (EOL) d’ici fin juin 2027. |
|
À ce jour, cette section est disponible en anglais uniquement. |
The ReadCas command gets information about one or more of your Client Certificate Authorities (CAs). > Deprecated: This call is deprecated and will be removed.
$ oapi-cli --profile "default" ReadCas \
--Filters '{
"CaIds": ["ca-fedcba0987654321fedcba0987654321"]
}'
$ oapi-cli --profile "default" --login "$OSC_LOGIN" --password "$OSC_PASSWORD" ReadCas \
--Filters '{
"CaIds": ["ca-fedcba0987654321fedcba0987654321"]
}'
This command contains the following options that you need to specify:
-
DryRun: (optional) If true, checks whether you have the required permissions to perform the action. -
Filters: (optional) One or more filters.-
CaFingerprints: (optional) The fingerprints of the CAs. -
CaIds: (optional) The IDs of the CAs. -
Descriptions: (optional) The descriptions of the CAs.
-
The ReadCas command returns the following elements:
-
Cas: Information about one or more CAs.-
CaFingerprint: The fingerprint of the CA. -
CaId: The ID of the CA. -
Description: The description of the CA.
-
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"Cas": [
{
"Description": "CA example",
"CaId": "ca-fedcba0987654321fedcba0987654321",
"CaFingerprint": "1234567890abcdef1234567890abcdef12345678"
}
]
}
Modifier une CA
|
L’utilisation d’autorités de certification (CA) pour les règles d’accès API est obsolète et atteindra sa fin de vie (EOL) d’ici fin juin 2027. |
|
À ce jour, cette section est disponible en anglais uniquement. |
The UpdateCa command modifies the specified attribute of a Client Certificate Authority (CA). > Deprecated: This call is deprecated and will be removed.
$ oapi-cli --profile "default" UpdateCa \
--CaId "ca-fedcba0987654321fedcba0987654321" \
--Description "New description"
$ oapi-cli --profile "default" --login "$OSC_LOGIN" --password "$OSC_PASSWORD" UpdateCa \
--CaId "ca-fedcba0987654321fedcba0987654321" \
--Description "New description"
This command contains the following options that you need to specify:
-
CaId: The ID of the CA. -
Description: (optional) The description of the CA. -
DryRun: (optional) If true, checks whether you have the required permissions to perform the action.
The UpdateCa command returns the following elements:
-
Ca: Information about the Client Certificate Authority (CA).-
CaFingerprint: The fingerprint of the CA. -
CaId: The ID of the CA. -
Description: The description of the CA.
-
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
},
"Ca": {
"Description": "New description",
"CaId": "ca-fedcba0987654321fedcba0987654321",
"CaFingerprint": "1234567890abcdef1234567890abcdef12345678"
}
}
Supprimer une CA
|
À ce jour, cette section est disponible en anglais uniquement. |
The DeleteCa command deletes a specified Client Certificate Authority (CA). > Deprecated: This call is deprecated and will be removed.
$ oapi-cli --profile "default" DeleteCa \
--CaId "ca-fedcba0987654321fedcba0987654321"
$ oapi-cli --profile "default" --login "$OSC_LOGIN" --password "$OSC_PASSWORD" DeleteCa \
--CaId "ca-fedcba0987654321fedcba0987654321"
This command contains the following options that you need to specify:
-
CaId: The ID of the CA you want to delete. -
DryRun: (optional) If true, checks whether you have the required permissions to perform the action.
The DeleteCa command returns the following elements:
-
ResponseContext: Information about the context of the response.-
RequestId: The ID of the request.
-
{
"ResponseContext": {
"RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
}
}
Page connexe
Méthodes API correspondantes