Skip to content

Update PKCS.class.php - #241

Open
vktRus wants to merge 1 commit into
FreePBX:release/17.0from
vktRus:patch-1
Open

Update PKCS.class.php#241
vktRus wants to merge 1 commit into
FreePBX:release/17.0from
vktRus:patch-1

Conversation

@vktRus

@vktRus vktRus commented Jun 10, 2026

Copy link
Copy Markdown

Fix error: Error Generating Certificate: x509

Fix error: Error Generating Certificate: x509
}
// Generate a key
$out = $this->runOpenSSL("x509 -req -sha256 -days 7 " . $cdv ." -in " . $location . "/" . $base . ".csr -CA " . $location . "/".$cabase.".crt -CAkey " . $location . "/".$cabase.".key -set_serial 01 -out " . $location . "/" . $base . ".crt -passin stdin", $passphrase);
$out = $this->runOpenSSL("x509 -req -sha256 -days " . $cdv ." -in " . $location . "/" . $base . ".csr -CA " . $location . "/".$cabase.".crt -CAkey " . $location . "/".$cabase.".key -set_serial 01 -out " . $location . "/" . $base . ".crt -passin stdin", $passphrase);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could use some escapeshellarg() calls, but the same applies for every command in this file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants