sapp
sapp copied to clipboard
Support paths on certs array
Would this be useful or unnecessary?
// this add support for this
$certArray =[
'cert' => '/PATH/TO/MY/cert.pem',
'pkey' => '/PATH/TO/MY/key.pem',
//'extracerts' => '/PATH/TO/MY/extracerts.pem',
];
// Current
$certArray =[
'cert' => file_get_contents('/PATH/TO/MY/cert.pem'),
'pkey' => file_get_contents('/PATH/TO/MY/key.pem'),
//'extracerts' => file_get_contents('/PATH/TO/MY/extracerts.pem'),
];
I don't think that it is needed. It would need just one pair of lines from the callee and avoids multiple types for parameters