acme_client_order.c
Go to the documentation of this file.
198 TRACE_DEBUG("###############################################################################\r\n");
199 TRACE_DEBUG("## NEW ORDER ##################################################################\r\n");
200 TRACE_DEBUG("###############################################################################\r\n");
576 TRACE_DEBUG("###############################################################################\r\n");
577 TRACE_DEBUG("## ORDER STATUS ###############################################################\r\n");
578 TRACE_DEBUG("###############################################################################\r\n");
793 TRACE_DEBUG("###############################################################################\r\n");
794 TRACE_DEBUG("## FINALIZE ORDER #############################################################\r\n");
795 TRACE_DEBUG("###############################################################################\r\n");
error_t acmeClientSendNewOrderRequest(AcmeClientContext *context, const AcmeOrderParams *params)
Send HTTP request (newOrder URL)
Definition: acme_client_order.c:182
error_t acmeClientInitOrder(AcmeClientContext *context, const AcmeOrderParams *params)
Initialize order object.
Definition: acme_client_order.c:131
error_t acmeClientFormatFinalizeOrderRequest(AcmeClientContext *context)
Format HTTP request body (order's finalize URL)
Definition: acme_client_order.c:865
DateTime notAfter
The requested value of the notAfter field in the certificate.
Definition: acme_client.h:473
Helper functions for ACME client.
JOSE (JSON Object Signing and Encryption)
DateTime notBefore
The requested value of the notBefore field in the certificate.
Definition: acme_client.h:472
error_t acmeClientParseNewOrderResponse(AcmeClientContext *context)
Parse HTTP response (newOrder URL)
Definition: acme_client_order.c:399
AcmeDomainParams domains[ACME_CLIENT_MAX_DOMAINS]
Domain names that the client wishes to submit an order for.
Definition: acme_client.h:471
error_t acmeClientSendRequest(AcmeClientContext *context)
Send HTTP request.
Definition: acme_client_misc.c:344
error_t acmeClientLoadKeyPair(AcmeKeyPair *keyPair, const char_t *publicKey, size_t publicKeyLen, const char_t *privateKey, size_t privateKeyLen)
Load public/private key pair.
Definition: acme_client_misc.c:59
error_t acmeClientGenerateCsr(AcmeClientContext *context, uint8_t *buffer, size_t *written)
Generate CSR (Certificate Signing Request)
Definition: acme_client_misc.c:828
error_t acmeClientFormatRequestHeader(AcmeClientContext *context, const char_t *method, const char_t *url)
Format HTTP request header.
Definition: acme_client_misc.c:543
error_t acmeClientSendFinalizeOrderRequest(AcmeClientContext *context)
Send HTTP request (order's finalize URL)
Definition: acme_client_order.c:778
Order object management.
void base64urlEncode(const void *input, size_t inputLen, char_t *output, size_t *outputLen)
Base64url encoding algorithm.
Definition: base64url.c:72
error_t acmeClientFormatJwsProtectedHeader(const AcmeKeyPair *keyPair, const char_t *kid, const char_t *nonce, const char_t *url, char_t *buffer, size_t *written)
Format JWS protected header.
Definition: acme_client_misc.c:659
AcmeOrderStatus acmeClientParseOrderStatus(const char_t *label)
Parse order status field.
Definition: acme_client_order.c:976
Base64url encoding scheme.
error_t acmeClientParseOrderStatusResponse(AcmeClientContext *context)
Parse HTTP response (order URL)
Definition: acme_client_order.c:684
error_t acmeClientFormatOrderStatusRequest(AcmeClientContext *context)
Format HTTP request body (order URL)
Definition: acme_client_order.c:647
error_t jwsCreate(const PrngAlgo *prngAlgo, void *prngContext, const char_t *protected, const char_t *payload, const char_t *alg, const char_t *crv, const void *privateKey, char_t *buffer, size_t *written)
Create a JSON Web Signature.
Definition: acme_client_jose.c:442
error_t acmeClientSendOrderStatusRequest(AcmeClientContext *context)
Send HTTP request (order URL)
Definition: acme_client_order.c:561
error_t acmeClientFormatNewOrderRequest(AcmeClientContext *context, const AcmeOrderParams *params)
Format HTTP request body (newOrder URL)
Definition: acme_client_order.c:271
error_t acmeClientParseFinalizeOrderResponse(AcmeClientContext *context)
Parse HTTP response (order's finalize URL)
Definition: acme_client_order.c:955
void acmeClientUnloadKeyPair(AcmeKeyPair *keyPair)
Unload public/private key pair.
Definition: acme_client_misc.c:291
error_t acmeClientCheckOrderParams(const AcmeOrderParams *params)
Check certificate order information.
Definition: acme_client_order.c:54
ACME client (Automatic Certificate Management Environment)
Debugging facilities.