Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
cce9955e
Commit
cce9955e
authored
Apr 30, 2017
by
Ad Schellevis
Committed by
Franco Fichtner
May 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trust, fix autofill CA fields, closes
https://github.com/opnsense/core/issues/1575
(cherry picked from commit
7a78cc99
)
parent
6dc662c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
system_certmanager.php
src/www/system_certmanager.php
+9
-5
No files found.
src/www/system_certmanager.php
View file @
cce9955e
...
...
@@ -652,14 +652,18 @@ $( document ).ready(function() {
continue
;
}
$subject
=
cert_get_subject_array
(
$ca
[
'crt'
]);
$subject_items
=
array
(
'C'
=>
''
,
'ST'
=>
''
,
'L'
=>
''
,
'O'
=>
''
,
'emailAddress'
=>
''
,
'CN'
=>
''
);
foreach
(
$subject
as
$subject_item
)
{
$subject_items
[
$subject_item
[
'a'
]]
=
$subject_item
[
'v'
];
}
?>
case
"
<?=
$ca
[
'refid'
];
?>
"
:
$
(
"
#dn_state
"
).
val
(
"
<?=
$subject
[
1
][
'v
'
];
?>
"
);
$
(
"
#dn_city
"
).
val
(
"
<?=
$subject
[
2
][
'v
'
];
?>
"
);
$
(
"
#dn_organization
"
).
val
(
"
<?=
$subject
[
3
][
'v
'
];
?>
"
);
$
(
"
#dn_email
"
).
val
(
"
<?=
$subject
[
4
][
'v
'
];
?>
"
);
$
(
"
#dn_state
"
).
val
(
"
<?=
$subject
_items
[
'ST
'
];
?>
"
);
$
(
"
#dn_city
"
).
val
(
"
<?=
$subject
_items
[
'L
'
];
?>
"
);
$
(
"
#dn_organization
"
).
val
(
"
<?=
$subject
_items
[
'O
'
];
?>
"
);
$
(
"
#dn_email
"
).
val
(
"
<?=
$subject
_items
[
'emailAddress
'
];
?>
"
);
$
(
'
#dn_country option
'
).
removeAttr
(
'
selected
'
);
$
(
'
#dn_country option
'
).
filter
(
'
[value="
<?=
$subject
[
0
][
'v
'
];
?>
"]
'
).
prop
(
'
selected
'
,
true
);
$
(
'
#dn_country option
'
).
filter
(
'
[value="
<?=
$subject
_items
[
'C
'
];
?>
"]
'
).
prop
(
'
selected
'
,
true
);
$
(
"
#dn_country
"
).
selectpicker
(
'
refresh
'
);
break
;
<?php
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment