Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Webslice
ISPConfig 3
Commits
793394b5
Commit
793394b5
authored
Aug 02, 2019
by
Marius Burkard
Browse files
- fixed invalid arguments for exec_safe on dkim
parent
8f135707
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/mail/ajax_get_json.php
View file @
793394b5
...
...
@@ -54,8 +54,9 @@ if($type == 'create_dkim' && $domain_id != ''){
if
(
$dkim_strength
==
''
)
$dkim_strength
=
2048
;
$rnd_val
=
$dkim_strength
*
10
;
$app
->
system
->
exec_safe
(
'openssl rand -out ../../temp/random-data.bin '
.
$rnd_val
.
' 2> /dev/null'
,
$output
,
$result
);
$app
->
system
->
exec_safe
(
'openssl genrsa -rand ../../temp/random-data.bin '
.
$dkim_strength
.
' 2> /dev/null'
,
$privkey
,
$result
);
$app
->
system
->
exec_safe
(
'openssl rand -out ../../temp/random-data.bin '
.
$rnd_val
.
' 2> /dev/null'
);
$app
->
system
->
exec_safe
(
'openssl genrsa -rand ../../temp/random-data.bin '
.
$dkim_strength
.
' 2> /dev/null'
);
$privkey
=
$app
->
system
->
last_exec_out
();
unlink
(
"../../temp/random-data.bin"
);
$dkim_private
=
''
;
foreach
(
$privkey
as
$values
)
$dkim_private
=
$dkim_private
.
$values
.
"
\n
"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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