?
Solved

PHP webservice signature

Posted on 2012-12-21
1
Medium Priority
?
306 Views
Last Modified: 2012-12-31
I need to use PHP to invoke an external SOAP web service that resides in a webserver.
The web service requires that a digital signature shall be used to establish the connection.
The web service must have a signature.
Some items on the xml web server file must be encrypted with an AES symmetric key. But when accessing the test environment the web service provider sent us two files
a file with an extension .cer and another one with .pfx extension.
Which of them and how can I use this in my PHP script to build the xml. Is there any example you can send to me?
0
Comment
Question by:luciliacoelho
1 Comment
 
LVL 1

Accepted Solution

by:
DanUrsoviciu earned 2000 total points
ID: 38714413
As an example on how to use php soap client with certificates:
$wsdl = "service.wsdl";
$cert = "c:\secure_cert\webservice.pem";
$client = new SoapClient($wsdl, array('local_cert' => $cert);

Open in new window

and you can check more examples on SoapClient manual page

The two files could be the same thing but in different formats. Read the explanations on this link to get an idea and convert certificates between formats.
0

Featured Post

What Security Threats Are We Predicting for 2018?

Cryptocurrency, IoT botnets, MFA, and more! Hackers are already planning their next big attacks for 2018. Learn what you might face, and how to defend against it with our 2018 security predictions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

#SSL #TLS #Citrix #HTTPS #PKI #Compliance #Certificate #Encryption #StoreFront #Web Interface #Citrix XenApp
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month13 days, 8 hours left to enroll

750 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question