summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-01-21 14:30:30 -0500
committerjim-p <jimp@pfsense.org>2013-01-21 14:33:19 -0500
commitca6219025cabd3edbe53e522b345a167381a0171 (patch)
tree2e076b0a5f92fbb9393009477528416d1be9690c /usr/local/www/wizards
parentbc2b0144e83bed57262c44175acba00277988101 (diff)
downloadpfsense-ca6219025cabd3edbe53e522b345a167381a0171.zip
pfsense-ca6219025cabd3edbe53e522b345a167381a0171.tar.gz
Allow selecting the digest algorithm when creating a CA or Cert. Implements #2765
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r--usr/local/www/wizards/openvpn_wizard.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/wizards/openvpn_wizard.inc b/usr/local/www/wizards/openvpn_wizard.inc
index 8f6fbc9..f6b4af9 100644
--- a/usr/local/www/wizards/openvpn_wizard.inc
+++ b/usr/local/www/wizards/openvpn_wizard.inc
@@ -475,7 +475,7 @@ function step12_submitphpaction() {
'emailAddress' => $pconfig['step6']['email'],
'commonName' => $pconfig['step6']['certca']);
- ca_create($ca, $pconfig['step6']['keylength'], $pconfig['step6']['lifetime'], $dn);
+ ca_create($ca, $pconfig['step6']['keylength'], $pconfig['step6']['lifetime'], $dn, "sha256");
if (!is_array($config['ca']))
$config['ca'] = array();
@@ -502,7 +502,7 @@ function step12_submitphpaction() {
'emailAddress' => $pconfig['step9']['email'],
'commonName' => $pconfig['step9']['certname']);
- cert_create($cert, $ca['refid'], $pconfig['step9']['keylength'], $pconfig['step9']['lifetime'], $dn, 'server');
+ cert_create($cert, $ca['refid'], $pconfig['step9']['keylength'], $pconfig['step9']['lifetime'], $dn, 'server', "sha256");
if (!is_array($config['cert']))
$config['cert'] = array();
OpenPOWER on IntegriCloud