summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/system_usermanager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/usr/local/www/system_usermanager.php b/src/usr/local/www/system_usermanager.php
index 1482663..40024c3 100644
--- a/src/usr/local/www/system_usermanager.php
+++ b/src/usr/local/www/system_usermanager.php
@@ -411,6 +411,10 @@ if ($_POST['save']) {
'organizationName' => $subject[3]['v'],
'emailAddress' => $subject[4]['v'],
'commonName' => $userent['name']);
+ $altnames_tmp = array(cert_add_altname_type($userent['name']));
+ if (!empty($altnames_tmp)) {
+ $dn['subjectAltName'] = implode(",", $altnames_tmp);
+ }
cert_create($cert, $_POST['caref'], $_POST['keylen'],
(int)$_POST['lifetime'], $dn);
OpenPOWER on IntegriCloud