HP OneView REST API Reference

certificates
certificates.html[10/17/2013 10:36:02 AM]
Response Description
SSLCertificate SSL certificate along with the validity status.
Valid - if X509
compliance and not expired, Expired -
if Certificate Expired,
Invalid - If not a valid X509
certificate.
Response Codes
REST API Response Codes
Examples
The following example validates an SSL certificate.
An example URI and request body are included.
POST https://example.net/rest/certificates/validator
{
"type":"SSLCertificateDTO",
"status":null,
"base64SSLCertData":"-----BEGIN CERTIFICATE-----\n encoded data
here \n-----END CERTIFICATE-----",
"aliasName":"localhostone",
"verifyTrustChainAndRevocation":false,
"verifyRevocationStatus":false
}
URI: /rest/certificates/{id}
Method API
GET Returns the SSL Certificate based on the certificate alias name given as part of the {id} and
checks if the certificate is X509 compliant and has not expired.
Parameter Attributes Description
view Optional Return a specific subset of the attributes of the resource or collection
by specifying the name of a predefined view. The default view is
expand (show all attributes of the resource, and all elements of
collections or resources).
fields Optional Sets the fields to be passed as input
Request
Header
Attributes Description
REST API Request Headers NOTE: The X-API-Version header is required for all APIs. For the
current release, this must be set to "X-API-Version:3"
Response Description
SSLCertificate The certificate data and the validity status
Response Codes
REST API Response Codes