Replies: 2 comments
-
p12 is currently not supported in wsse-middleware.
That way, you can use them like this: $response = Soap::baseWsdl('http://test.com'/v1?wsdl)->withWsse([
'privateKeyFile' => 'path/to/security_token.priv',
'publicKeyFile' => 'path/to/security_token.pub',
])->call(...); |
Beta Was this translation helpful? Give feedback.
0 replies
-
thank you for the reply what will the key name like now privateKeyFile then
I have to write other key like p12certificate?? or instead of private key
file give this certificate i hope you understand what i mean
…On Wed, Oct 12, 2022 at 4:13 PM Toon Verwerft ***@***.***> wrote:
p12 is currently not supported in wsse-middleware.
You can convert it to x509 with following commands:
openssl pkcs12 -in your.p12 -out security_token.pub -clcerts -nokeys
openssl pkcs12 -in your.p12 -out security_token.priv -nocerts -nodes
That way, you can use them like this:
$response = Soap::baseWsdl('http://test.com'/v1?wsdl)->withWsse([
'privateKeyFile' => 'path/to/security_token.priv',
'publicKeyFile' => 'path/to/security_token.pub',
])->call(...);
More info:
https://github.com/php-soap/psr18-wsse-middleware#signing-a-soap-request-with-pkcs12-or-x509-certificate
—
Reply to this email directly, view it on GitHub
<#250 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVQPI4FIN6AO7AAXHCAERZDWC2MMJANCNFSM6AAAAAARDBDY24>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How I can add p12 file pfx and other certificate in request
Beta Was this translation helpful? Give feedback.
All reactions