#include <assert.h>
#include <stdlib.h>
#include <apr_lib.h>
#include <apr_strings.h>
#include <apr_buckets.h>
#include <apr_hash.h>
#include <apr_uri.h>
#include "md.h"
#include "md_crypt.h"
#include "md_json.h"
#include "md_jws.h"
#include "md_http.h"
#include "md_log.h"
#include "md_result.h"
#include "md_reg.h"
#include "md_store.h"
#include "md_util.h"
#include "md_acme.h"
#include "md_acme_acct.h"
#include "md_acme_authz.h"
#include "md_acme_order.h"
#include "md_acme_drive.h"
#include "md_acmev2_drive.h"
Go to the source code of this file.
|
| static apr_status_t | use_staged_acct (md_acme_t *acme, struct md_store_t *store, const md_t *md, apr_pool_t *p) |
| |
| static apr_status_t | save_acct_staged (md_acme_t *acme, md_store_t *store, const char *md_name, apr_pool_t *p) |
| |
| apr_status_t | md_acme_drive_set_acct (md_proto_driver_t *d, md_result_t *result) |
| |
| static void | get_up_link (md_proto_driver_t *d, apr_table_t *headers) |
| |
| static apr_status_t | add_http_certs (apr_array_header_t *chain, apr_pool_t *p, const md_http_response_t *res) |
| |
| static apr_status_t | on_add_cert (md_acme_t *acme, const md_http_response_t *res, void *baton) |
| |
| static apr_status_t | get_cert (void *baton, int attempt) |
| |
| apr_status_t | md_acme_drive_cert_poll (md_proto_driver_t *d, int only_once) |
| |
| static apr_status_t | on_init_csr_req (md_acme_req_t *req, void *baton) |
| |
| static apr_status_t | csr_req (md_acme_t *acme, const md_http_response_t *res, void *baton) |
| |
| apr_status_t | md_acme_drive_setup_cred_chain (md_proto_driver_t *d, md_result_t *result) |
| |
| static apr_status_t | on_add_chain (md_acme_t *acme, const md_http_response_t *res, void *baton) |
| |
| static apr_status_t | get_chain (void *baton, int attempt) |
| |
| static apr_status_t | ad_chain_retrieve (md_proto_driver_t *d) |
| |
| static apr_status_t | acme_driver_preload_init (md_proto_driver_t *d, md_result_t *result) |
| |
| static apr_status_t | acme_driver_init (md_proto_driver_t *d, md_result_t *result) |
| |
| static apr_status_t | load_missing_creds (md_proto_driver_t *d) |
| |
| static apr_status_t | acme_renew (md_proto_driver_t *d, md_result_t *result) |
| |
| static apr_status_t | acme_driver_renew (md_proto_driver_t *d, md_result_t *result) |
| |
| static apr_status_t | acme_preload (md_proto_driver_t *d, md_store_group_t load_group, const char *name, md_result_t *result) |
| |
| static apr_status_t | acme_driver_preload (md_proto_driver_t *d, md_store_group_t group, md_result_t *result) |
| |
| static apr_status_t | acme_complete_md (md_t *md, apr_pool_t *p) |
| |
| apr_status_t | md_acme_protos_add (apr_hash_t *protos, apr_pool_t *p) |
| |
◆ acme_complete_md()
◆ acme_driver_init()
◆ acme_driver_preload()
◆ acme_driver_preload_init()
◆ acme_driver_renew()
◆ acme_preload()
◆ acme_renew()
◆ ad_chain_retrieve()
◆ add_http_certs()
◆ csr_req()
◆ get_cert()
◆ get_chain()
◆ get_up_link()
◆ load_missing_creds()
◆ md_acme_drive_cert_poll()
◆ md_acme_drive_set_acct()
◆ md_acme_drive_setup_cred_chain()
Pre-Req: all domains have been validated by the ACME server, e.g. all have AUTHZ resources that have status 'valid'
- acme_driver->cred keeps the credentials to setup (key spec)
Setup private key, if not already there
- Generate a CSR with org, contact, etc
- Optionally enable must-staple OCSP extension
- Submit CSR, expect 201 with location
- POLL location for certificate
- store certificate
- retrieve cert chain information from cert
- GET cert chain
- store cert chain
Definition at line 354 of file md_acme_drive.c.
◆ md_acme_protos_add()
◆ on_add_cert()
◆ on_add_chain()
◆ on_init_csr_req()
◆ save_acct_staged()
◆ use_staged_acct()
◆ ACME_PROTO
Initial value:= {
}
static apr_status_t acme_driver_preload_init(md_proto_driver_t *d, md_result_t *result)
static apr_status_t acme_complete_md(md_t *md, apr_pool_t *p)
static apr_status_t acme_driver_renew(md_proto_driver_t *d, md_result_t *result)
static apr_status_t acme_driver_init(md_proto_driver_t *d, md_result_t *result)
static apr_status_t acme_driver_preload(md_proto_driver_t *d, md_store_group_t group, md_result_t *result)
Definition at line 1095 of file md_acme_drive.c.