xperseguers / ocsp-responder

OCSP responder operating from pre-produced set of OCSP responses.
GNU General Public License v3.0
22 stars 8 forks source link

No .ini file #2

Open Famicoman opened 7 years ago

Famicoman commented 7 years ago

I wanted to play around with this, but there doesn't seem to be any OCSPServer.inI sample for configuration.

vigri commented 7 years ago

@Famicoman Did you were able to solve your question? I'm facing the same problem.

Famicoman commented 7 years ago

@vigri Unfortunately no, unless the maintainer gets back to this thread I have given up in using this project.

mcarbonneaux commented 6 years ago

can you add ini sample ?

xperseguers commented 6 years ago

Same comment as https://github.com/xperseguers/ocsp-responder/issues/1

michaelkrieger commented 3 years ago

Would appear that it just needs 'basedir' (the full path do the storage root directory) and the ini file should be in the format needed by parse_ini_file. It is passed into StoreFS which calls the setBasedir function. The ini file doesn't appear to be used anywhere else in the code.

So the ini file should just contain

basedir = "/path/to/my/data/store"

bseddon commented 3 years ago

The constructor accepts an array so its possible initialize the class like this if you don't want mess with an ini file:

$store = new \OCSPServer\StoreFS(['baseDir' => '...path to your store...']);

or set the base directory explicitly:

$store = new \OCSPServer\StoreFS([]);
$store->setBasedir(  '...path to your store...' );