Skip to content

Commit

Permalink
[tools] rdpcert: Use aes256 cipher in privatekey generation encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
mengtan committed Mar 7, 2024
1 parent 9b08106 commit 8132afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/rdpcert
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ if ($key){
if ($keyfile){
print STDERR "Setting RDP proxy server user defined private key\n";
-e $keyfile or die "User private key file not found\n";
`openssl pkey -in $keyfile -out $pkey -des3 -passout "pass:$pass"`;
`openssl pkey -in $keyfile -out $pkey -aes256 -passout "pass:$pass"`;
die "rdpproxy:failed to set ReDemPtion server private key\n" if $?;
}
else {
my $gen_opts = $eckey ? $ec_gen_opts : $rsa_gen_opts;
print STDERR "Setting new RDP proxy server private key\n";
`openssl genpkey -out $pkey -des3 -pass "pass:$pass" $gen_opts`;
`openssl genpkey -out $pkey -aes256 -pass "pass:$pass" $gen_opts`;
die "rdpproxy:failed to create ReDemPtion server private key" if $?;
}
$x509 = 1; # force regeneration of key
Expand Down

0 comments on commit 8132afc

Please sign in to comment.