Closed

MAKING AN API REQUEST CALL USING PHP, CURL AND A CLIENT SIDE SSL CERTIFICATE

We need someone to review our source codes in order to be able to send a client side SSL certificate in PHP code using curl.

We have PHP codes that use curl and RestTemplate to send parameters to an endpoint provided by a partner. In order to successfully connect with the endpoint, our partner has provided us with server SSL certificate that we should use while making the API calls to the endpoint. Below is the source code in php-curl:

PHP CURL

$base_url = 'xxxx';

$username = 'xxx';

$password = 'xxxxx’;

$xml_input = "<ns2:paymentRequest xmlns:ns2=\"xxxxx">\n<ns2:rraRef>$variable</ns2:rraRef>\n<ns2:amount>$variable</ns2:amount>\n <ns2:bankAccount>$variable</ns2:bankAccount>\n<ns2:providerTransactionId>$variable</ns2:providerTransactionId>\n</ns2:paymentRequest>";

// Request headers

$headers = array(

'Content-Type: application/xml'

);

$ch = curl_init($base_url);

curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

curl_setopt($ch, CURLOPT_VERBOSE, 0);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

curl_setopt($ch, CURLOPT_HEADER, FALSE);

curl_setopt($ch, CURLOPT_USERPWD, $username . ":" . $password);

curl_setopt($ch, CURLOPT_POSTFIELDS, $xml_input);

$result = curl_exec($ch);

The SSL certificate is in .crt format. If you need a different format other than .crt, you may advise us so that we get you the file from our partners. Note that the API request must be done from a specific server whose IP address has been whitelisted by our partner. We shall provide you with the access to this server for testing purposes.

Consider that the source codes must be in PHP and Java spring

We expect this task to be completed in 48 hours.

Skills: PHP, XML, Software Architecture, Linux, JSON

See more: myspace rss using php curl, post comment hi5 using php curl forum, post forum using php curl, php curl cacert, php curl ssl, php curl ssl unable to obtain common name from peer certificate, curl client certificate, php curl curlopt_sslcert, curl soap request with certificate, php curl with certificate, php curl get ssl certificate, api click call asterisk php, connecting facebook using php curl, access https using php curl, logging facebook using php curl, download youtube using php curl, facebook using php curl, zend api import contacts using php, download youtube videos using php curl, url masking using php curl

About the Employer:
( 16 reviews ) Midrand, South Africa

Project ID: #20461921

20 freelancers are bidding on average $166 for this job

infowider11

Hi, yes i am API expert . i can do your help i am php experienced from 7 years. . can we talk ? Thanks Shweta

$250 USD in 7 days
(115 Reviews)
7.6
extreamcode

HI, I can assist you with API REQUEST CALL. Here is a sampling of the few of my work contained at my portfolio: https://www.freelancer.com/u/extreamcode.html This is a placehoolder bid, I would be able to quote final p More

$140 USD in 7 days
(79 Reviews)
7.6
khanicha

Hello, Your php-curl should pass the ssl certificate as well. you could use following curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_CAINFO, ge More

$111 USD in 1 day
(28 Reviews)
7.8
markninja

Hi, As per your given job description, you want to review your source codes in order to be able to send a client side SSL certificate in PHP code using curl. I am available to start your project right [login to view URL], More

$140 USD in 2 days
(94 Reviews)
7.0
techwelfare

Just give us the chance to prove ourselves....... We have some questions to clarify,please reply us so we could discuss the project in details. Thanks & Regards Moumita

$232 USD in 12 days
(161 Reviews)
7.1
BZain

Hi I have seen the document file and the CURL code you have, you should pass the ssl certificate as well in your curl code I'm ready to help you with it and available to start right now to get that done within next 48 More

$300 USD in 2 days
(43 Reviews)
6.3
Torricelli

Hi, i hope you're doing well. I've just read your project's description and i would like to help you with it. I'm an experienced web developer with the necessary PHP, cURL, HTTP and SSL layer skills for getting this More

$60 USD in 1 day
(194 Reviews)
6.3
ArkssTech

Hello Patrick N. 100% ON TIME DELIVERY  We are a team of 30+ individuals highly experienced in php, xml, linux, software architecture, json for our clients to increase their business and to help them in generating a go More

$180 USD in 7 days
(38 Reviews)
6.4
$30 USD in 7 days
(44 Reviews)
6.0
dynamitewebsol

Hello, I read your requirements and understand very-well and ready to start work from now. Thank you

$160 USD in 2 days
(74 Reviews)
6.4
kyleevert

Hello dear How are you? I read your requirement carefully I am very interested in your post project. I am sure i can give you great result. I have rich experience on it. so please discuss more detail via chat. loo More

$140 USD in 7 days
(19 Reviews)
5.8
developersshop

Respected Sir Umag soft Solutions is the leading IT Company of Pakistan. We have 15+ years of experience and strong knowledge about programming languages PHP Laraval CI WORDPRESS Themes and Plug-ins development Bootst More

$140 USD in 7 days
(56 Reviews)
5.4
matteus1118

Dear Client. Welcome to your job! I just have checked your needs with high attention. Your project makes me being excited. I have rich experiences and flexible skills that you want. If you hire me, would make great eff More

$140 USD in 7 days
(15 Reviews)
5.3
umer6316326

Hello, I have reviewed the details given in the description and will do it in 24 hours but needs to discuss it in further details before getting started. let's discuss it in further details over the chat, waiting for More

$200 USD in 2 days
(5 Reviews)
3.7
innovationlight

Hi, I am expert web scraper developer in PHP and Python with more than 5 year experience I have experience integrating with banks and airline companies in PHP framework like ECSHope and ThinkPHP Pls contact me for deta More

$50 USD in 1 day
(5 Reviews)
2.6
sayhi2tariq

Hi there, I just saw your project detail that you need to the API REQUEST CALL USING PHP, CURL AND A CLIENT SIDE SSL CERTIFICATE. I am PHP full-stack developer having 8+ year of professional experience having good kn More

$140 USD in 3 days
(1 Review)
0.0
shaunleeglobal

Greetings, We will be more than happy to help [login to view URL] matters most to us are; your trust, perfect functionality of your project, time uniformity and quick delivering. We work in assemblage of professional Computer sci More

$222 USD in 3 days
(0 Reviews)
0.0
imobiledevz

hi sir, I can fix this. but I need to use .pem file for it. and I will surely complete this in less than 48 hours. PM me for more details. I just need that milestone is to be created. you can release it after I compl More

$40 USD in 1 day
(0 Reviews)
0.0
Sambuzz5

Have 9+ years of experience in Web Development, Designing & Digital Marketing, delivering successful projects & living upto, exceeding client expectations. My Expertise Mobile: iPhone, Android, HTML5 Mobile Websites, P More

$444 USD in 2 days
(0 Reviews)
0.0
AmrutaANilawar

Greetings for the day! We will be glad to work with your firm. As an expert team, we are having good experience in web development in various frameworks like PHP - Code Ignitor and Laravel using API, we will be happy t More

$200 USD in 7 days
(0 Reviews)
0.0