Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use passphrase and local keystore when initialising #36

Open
cargellio opened this issue Jul 11, 2018 · 1 comment
Open

Use passphrase and local keystore when initialising #36

cargellio opened this issue Jul 11, 2018 · 1 comment

Comments

@cargellio
Copy link

In PHP's in built soapclient I can add a local_cert, and passphrase as options. This feature is not possible at all in nusoap as far as I could determine. Will that be available in future releases. Unfortunately I had to fall back on php soapclient again

Example
$local_cert = '/directory/path/to/password.pfx';
$passphrase = 'password';
$options = [
    'keep_alive'    => true,
    'trace'         => false,
    'local_cert'    => $local_cert,
    'passphrase'    => $passphrase,
    'cache_wsdl'    => WSDL_CACHE_NONE,
];
$soapcli = new SoapClient($WSDL, $options);
@carlosanpardo
Copy link

carlosanpardo commented Jul 19, 2020

Hello! Try with:

$certRequest = array('', 'sslcertfile' => FCPATH."uploads/cert.crt", 'sslkeyfile' => FCPATH."uploads/cert_key.key", 'passphrase' => '', 'verifypeer' => 0, 'verifyhost' => 0);
$client->setCredentials('', '', 'certificate', $certRequest);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants