|
◆ oe_generate_attestation_certificate()
oe_result_t oe_generate_attestation_certificate |
( |
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_generate_attestation_certificate.
This function generates a self-signed x.509 certificate with an embedded quote from the underlying enclave.
- Parameters
-
[in] | subject_name | a string contains 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) specification 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
|