Solved

PHP webservice signature

Posted on 2012-12-21
1
290 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 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
SSL stands for “Secure Sockets Layer” and an SSL certificate is a critical component to keeping your website safe, secured, and compliant. Any ecommerce website must have an SSL certificate to ensure the safe handling of sensitive information like…
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 look for a specific file type in a local or remote server directory using PHP.

759 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now