i need to mimic this openssl command via phpseclib, which signs a public key from someone with my private key:
- Code: Select all
$command = "openssl ca -config $conf -verbose -batch -notext -spkac /input.txt -out /out.txt -passin pass:'" . $pass . "' 2>&1";
Where the inputfile looks like this:
SPKAC=the public key in pem format
countryName=XX
CN=my name
........
I looked at the example at the website but that was not fully clear to me.
How can i do this via phpseclib?
BTW I prefer NOT to use temp-files, if possible. All the required data like the public key, common-name etc. is available in php variables.
