dealfonso / sapp

Simple and Agnostic PDF Document Parser in PHP - sign PDF docs using PHP
GNU Lesser General Public License v3.0
110 stars 29 forks source link

Support paths on certs array #51

Open erikn69 opened 1 year ago

erikn69 commented 1 year ago

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'),
];
dealfonso commented 1 year ago

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