Open Enclave  0.17.0

◆ oe_get_attestation_certificate_with_evidence_v2()

oe_result_t oe_get_attestation_certificate_with_evidence_v2 ( const oe_uuid_t format_id,
const unsigned char *  subject_name,
uint8_t *  private_key,
size_t  private_key_size,
uint8_t *  public_key,
size_t  public_key_size,
const void *  optional_parameters,
size_t  optional_parameters_size,
uint8_t **  output_certificate,
size_t *  output_certificate_size 
)

oe_get_attestation_certificate_with_evidence_v2

Similar to oe_get_attestation_certificate_with_evidence, this function generates a self-signed x.509 certificate with embedded evidence generated by an attester plugin for the enclave, but it also allows a user to pass in optional parameters.

This feature is marked as experimental:
Parameters
[in]format_idThe format id of the evidence to be generated.
[in]subject_namea string containing an X.509 distinguished name (DN) for customizing the generated certificate. This name is also used as the issuer name because this is a self-signed certificate See RFC5280 (https://tools.ietf.org/html/rfc5280) for details Example value "CN=Open Enclave SDK,O=OESDK TLS,C=US"
[in]private_keya private key used to sign this certificate
[in]private_key_sizeThe size of the private_key buffer
[in]public_keya public key used as the certificate's subject key
[in]public_key_sizeThe size of the public_key buffer.
[in]optional_parametersThe optional format-specific input parameters.
[in]optional_parameters_sizeThe size of optional_parameters in bytes.
[out]output_certificatea pointer to buffer pointer
[out]output_certificate_sizesize of the buffer above
Returns
OE_OK on success