|
◆ 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_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. |
[in] | optional_parameters | The optional format-specific input parameters. |
[in] | optional_parameters_size | The size of optional_parameters in bytes. |
[out] | output_certificate | a pointer to buffer pointer |
[out] | output_certificate_size | size of the buffer above |
- Returns
- OE_OK on success
|