summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2012-02-23 18:06:48 -0700
committerErik Fonnesbeck <efonnes@gmail.com>2012-02-23 18:06:48 -0700
commitc04237e9d5fccde650a9bc817fe862b066aceed7 (patch)
tree69af48c245f01d148181dcffb5e078c54c8c6957 /usr/local
parent310a7a05d810a5abfc878fd750348eab58d50b7d (diff)
downloadpfsense-c04237e9d5fccde650a9bc817fe862b066aceed7.zip
pfsense-c04237e9d5fccde650a9bc817fe862b066aceed7.tar.gz
Carry over the key length on input errors when creating a certificate signing request. Ticket #2233
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/system_certmanager.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/system_certmanager.php b/usr/local/www/system_certmanager.php
index 252d4e3..c6f01dd 100644
--- a/usr/local/www/system_certmanager.php
+++ b/usr/local/www/system_certmanager.php
@@ -701,6 +701,8 @@ function internalca_change() {
<td width="78%" class="vtable">
<select name='csr_keylen' class="formselect">
<?php
+ if (!isset($pconfig['keylen']) && isset($pconfig['csr_keylen']))
+ $pconfig['keylen'] = $pconfig['csr_keylen'];
foreach( $cert_keylens as $len):
$selected = "";
if ($pconfig['keylen'] == $len)
OpenPOWER on IntegriCloud