|
◆ oe_get_attestation_certificate_with_evidence()
oe_result_t oe_get_attestation_certificate_with_evidence |
( |
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, |
|
|
uint8_t ** |
output_cert, |
|
|
size_t * |
output_cert_size |
|
) |
| |
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.
- Parameters
-
[in] | format_id | The format id of the evidence to be generated. |
[in] | subject_name | a 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_key | a private key used to sign this certificate |
[in] | private_key_size | The size of the private_key buffer |
[in] | public_key | a public key used as the certificate's subject key |
[in] | public_key_size | The size of the public_key buffer. |
[out] | output_cert | a pointer to buffer pointer |
[out] | output_cert_size | size of the buffer above |
- Returns
- OE_OK on success
|