mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
VPN/OpenVPN/Client Export - fix openssl_pkcs12_export(): Passing null to parameter #4 ($passphrase) of type string is deprecated
This commit is contained in:
parent
bf97cdfc87
commit
e7007a42a2
@ -80,8 +80,8 @@ class ArchiveOpenVPN extends PlainOpenVPN
|
||||
$p12 = $this->export_pkcs12(
|
||||
$this->config['client_crt'],
|
||||
$this->config['client_prv'],
|
||||
!empty($this->config['p12_password']) ? $this->config['p12_password'] : null,
|
||||
!empty($this->config['server_ca_chain']) ? $this->config['server_ca_chain'] : null
|
||||
!empty($this->config['p12_password']) ? $this->config['p12_password'] : '',
|
||||
!empty($this->config['server_ca_chain']) ? $this->config['server_ca_chain'] : ''
|
||||
);
|
||||
|
||||
file_put_contents("{$content_dir}/{$base_filename}.p12", $p12);
|
||||
|
||||
@ -114,8 +114,8 @@ class ViscosityVisz extends PlainOpenVPN
|
||||
$p12 = $this->export_pkcs12(
|
||||
$this->config['client_crt'],
|
||||
$this->config['client_prv'],
|
||||
!empty($this->config['p12_password']) ? $this->config['p12_password'] : null,
|
||||
!empty($this->config['server_ca_chain']) ? $this->config['server_ca_chain'] : null
|
||||
!empty($this->config['p12_password']) ? $this->config['p12_password'] : '',
|
||||
!empty($this->config['server_ca_chain']) ? $this->config['server_ca_chain'] : ''
|
||||
);
|
||||
|
||||
file_put_contents("{$content_dir}/pkcs.p12", $p12);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user