Answer the question
In order to leave comments, you need to log in
Who knows how, through a php script, to implement a quick creation of a certificate\key for a client?
It is required to write a PHP script that will automatically create a certificate/key pair for the Client. The problem appears at the moment where you need to enter confirmation in the console, when executing the command:
Knocks out the standard input:exec('./easyrsa gen-req '.$nameClient.' nopass/');
[email protected]:~/EasyRSA-3.0.5# php XXXXXXXXXX.php
Ignoring unknown command option: 'nopass/'
Generating a RSA private key
............................................................................................................+++++
......................................................................................................................................+++++
writing new private key to '/root/EasyRSA-3.0.5/pki/private/XXXXX.key.qnQWqYK39n'
Enter PEM pass phrase: (вот здесь нужно автоматически подставлять значение)
Answer the question
In order to leave comments, you need to log in
https://github.com/EvilFreelancer/easyrsa-php
A friend of mine wrote
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question