acme_client_account.c
Go to the documentation of this file.
103 TRACE_DEBUG("###############################################################################\r\n");
104 TRACE_DEBUG("## NEW ACCOUNT ################################################################\r\n");
105 TRACE_DEBUG("###############################################################################\r\n");
359 TRACE_DEBUG("###############################################################################\r\n");
360 TRACE_DEBUG("## UPDATE ACCOUNT #############################################################\r\n");
361 TRACE_DEBUG("###############################################################################\r\n");
578 TRACE_DEBUG("###############################################################################\r\n");
579 TRACE_DEBUG("## KEY CHANGE #################################################################\r\n");
580 TRACE_DEBUG("###############################################################################\r\n");
error_t acmeFormatUpdateAccountRequest(AcmeClientContext *context, const AcmeAccountParams *params)
Format HTTP request body (account URL)
Definition: acme_client_account.c:431
Helper functions for ACME client.
error_t acmeClientParseUpdateAccountResponse(AcmeClientContext *context)
Parse HTTP response (account URL)
Definition: acme_client_account.c:535
Account object management.
JOSE (JSON Object Signing and Encryption)
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 acmeClientFormatRequestHeader(AcmeClientContext *context, const char_t *method, const char_t *url)
Format HTTP request header.
Definition: acme_client_misc.c:543
error_t acmeClientParseKeyChangeResponse(AcmeClientContext *context)
Parse HTTP response (keyChange URL)
Definition: acme_client_account.c:793
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
error_t acmeClientFormatJwk(const AcmeKeyPair *keyPair, char_t *buffer, size_t *written, bool_t sort)
Export a public key to JWK format.
Definition: acme_client_misc.c:772
error_t acmeClientSendKeyChangeRequest(AcmeClientContext *context, const char_t *publicKey, size_t publicKeyLen, const char_t *privateKey, size_t privateKeyLen)
Send HTTP request (keyChange URL)
Definition: acme_client_account.c:561
error_t acmeClientSendUpdateAccountRequest(AcmeClientContext *context, const AcmeAccountParams *params)
Send HTTP request (account URL)
Definition: acme_client_account.c:343
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
const char_t * contacts[ACME_CLIENT_MAX_CONTACTS]
Array of URLs that the server can use to contact the client.
Definition: acme_client.h:443
error_t acmeClientSendNewAccountRequest(AcmeClientContext *context, const AcmeAccountParams *params, bool_t onlyReturnExisting)
Send HTTP request (newAccount URL)
Definition: acme_client_account.c:87
error_t acmeClientFormatKeyChangeRequest(AcmeClientContext *context, const char_t *publicKey, size_t publicKeyLen, const char_t *privateKey, size_t privateKeyLen)
Format HTTP request body (keyChange URL)
Definition: acme_client_account.c:655
void acmeClientUnloadKeyPair(AcmeKeyPair *keyPair)
Unload public/private key pair.
Definition: acme_client_misc.c:291
bool_t termsOfServiceAgreed
Indicates the client's agreement with the terms of service.
Definition: acme_client.h:444
error_t acmeClientFormatNewAccountRequest(AcmeClientContext *context, const AcmeAccountParams *params, bool_t onlyReturnExisting)
Format HTTP request body (newAccount URL)
Definition: acme_client_account.c:198
ACME client (Automatic Certificate Management Environment)
error_t acmeClientCheckAccountParams(const AcmeAccountParams *params)
Check account information.
Definition: acme_client_account.c:53
Debugging facilities.
error_t acmeClientParseNewAccountResponse(AcmeClientContext *context)
Parse HTTP response (newAccount URL)
Definition: acme_client_account.c:315