Create client certificates
post
https://{your_site_interface}/opa-hub/api/12.2.35/clientCertificates
This operation will create client certificates.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Nested Schema : clientCertificatePost
Type:
Show Source
object
-
name(required): string
The certificate name.
-
pemData(required): string
(password)
The PEM-formatted certificate and key data, starting with -----BEGIN CERTIFICATE----- and containing a -----BEGIN PRIVATE KEY-----. Write-only property.
Security
-
Authorization: apiKey
Type:
apiKey
Description:Obtain a bearer token from https://{your_site_interface}/opa-hub/api/12.2.17/auth and use it in the Authorization header as: Bearer {token}.
-
oauth2_opa: oauth2
Type:
oauth2
Description:POST the OAuth2 Client Credentials parameters to https://{your_site_interface}/opa-hub/api/12.2.17/auth and use the access token from the response in the Authorization header.
Response
Supported Media Types
- application/json
201 Response
The request has been fulfilled and resulted in a new resource being created.
Nested Schema : clientCertificate
Type:
Show Source
object
-
fingerprintSHA1: string
Read Only:
true
The certificate SHA-1 fingerprint. -
fingerprintSHA256: string
Read Only:
true
The certificate SHA-256 fingerprint. -
issuer: string
Read Only:
true
The distinguished name of the certificate issuer. -
name(required): string
The certificate name.
-
references: integer
(int64)
Read Only:
true
The number of references to this certificate. -
subject: string
Read Only:
true
The distinguished name of the certificate subject. -
validFrom: string
(date-time)
Read Only:
true
The date and time this certificate is valid from. -
validTo: string
(date-time)
Read Only:
true
The date and time this certificate is valid to.
400 Response
The request could not be processed because it contains missing or invalid information.
409 Response
A duplicate name or certificate is already present.