Skip to content

Importing Certificates and Keys

freqyXin edited this page Sep 10, 2019 · 1 revision

EAPHammer doesn't limit you to certificates created with Cert Wizard. You can also import certificates using --cert-wizard import. Imported certificates and private keys are combined into a single PEM file and saved to certs/server, then copied to certs/active, which incorporates them into eaphammer's static configuration. The imported certificate chain and key is then used by eaphammer until another cert is imported or created.

Imported certificates can be of any of the following formats, so long as they are in PEM format:

Server certificate, CA certificate, and server private key all in separate files:

Usage example:

./eaphammer --cert-wizard import
 --server-cert /path/to/server_cert.pem
 --ca-cert /path/to/ca_cert.pem
 --private-key /path/to/server_key.pem

Full certificate chain in single file and server private key in separate file (i.e. "Let's Encrypt" certificate format):

Usage example:

./eaphammer --cert-wizard import 
 --server-cert /path/to/fullchain.pem 
 --private-key /path/to/private_key.pem

Server certificate and private key in combined PEM file, CA certificate in separate file:

Usage example:

./eaphammer --cert-wizard import 
 --server-cert /path/to/server_and_key.pem 
 --ca-cert /path/to/ca_cert.pem

Full certificate chain and private key in single PEM file:

Usage example:

./eaphammer --cert-wizard import \
 --server-cert /path/to/fullchain_and_key.pem

EAPHammer Wiki

Clone this wiki locally