diff --git a/ca/main.php b/ca/main.php index b4bcb63..2891a8e 100644 --- a/ca/main.php +++ b/ca/main.php @@ -10,6 +10,14 @@ $stage = gpvar('stage'); switch($stage) { +case 'dl_takey': + upload("$config[private_dir]/takey.pem", "$config[ca_prefix]takey.pem", 'application/octet-stream'); + break; + +case 'dl_dhparam': + upload("$config[private_dir]/dhparam1024.pem", "$config[ca_prefix]dhparam1024.pem", 'application/octet-stream'); + break; + case 'dl_root': upload("$config[cacert_pem]", "$config[ca_prefix]cacert.crt", 'application/x-x509-ca-cert'); break; @@ -18,37 +26,81 @@ case 'dl_crl': upload("$config[cacrl_der]", "$config[ca_prefix]cacrl.crl", 'application/pkix-crl'); break; +case 'dl_crl_pem': + upload("$config[cacrl_pem]", "$config[ca_prefix]cacrl.crl", 'application/octet-stream'); + break; + case 'gen_crl': - list($ret,$errtxt) = CA_generate_crl(); + list($ret,$errtxt) = CA_generate_crl(); - printHeader(false); + printHeader(false); + + if ($ret) { + ?> +
+
+ '.CA_crl_text().''; + } + else { + ?> + +++ + +Debug Info:
+ +
+
+ '.ta_key_text().''; + break; + +case 'display_dhparam': + printHeader(false); + + ?> ++
+ '.dhparam_text().''; + break; + +case 'display_root_pem': + printHeader(false); + + ?> ++
+ '.root_pem_text().''; + break; - if ($ret) { - ?> --
- '.CA_crl_text().''; - } - else { - ?> - --- -Debug Info:
- -
CERTIFICATE MANAGEMENT MENU | -|
---|---|
Create a New Certificate | Use the Certificate Request Form to create and download new digital certificates. @@ -70,23 +121,42 @@ default: Certificate Management Control Panel. |
- Update & View the Certificate Revocation List | + Update & View the Certificate Revocation ListSome applications automagically reference the Certificate Revocation List to determine certificate validity. It is not necessary to perform this update function, as the CRL is updated when certificates are revoked. However, doing so is harmless. Read the online help to learn more about this. |
- Download the Root Certificate | - Display the Root Certificate (PEM Encoded) + Download the Root CertificateThe "Root" certificate must be installed before using any of the certificates issued here. Read the online help to learn more about this. |
- Download the Certificate Revocation List | + Download the Certificate Revocation ListThis is the official list of revoked certificates. Using this list with your e-mail or - browser application is optional. Some applications will automagically reference this list. |
+ Download the static pre-shared key + Display the static pre-shared key |
+ This key can be used with OpenVPN as a standalone auth mechanism, or as an additional TLS authentication. |
+ Download the Diffie-Hellman parameters + Display the Diffie-Hellman parameters |
+ This file is used by OpenVPN for the hand-shake. The Diffie-Hellman key agreement + protocol enables two communication partners to exchange a secret key safely. |