in reply to Re: convert C# to perl script
in thread convert C# to perl script
Hi, I have installed REST::Client and Crypt::X509 modules.
The above script is working fine without using ssl certificate. Now i want to include ssl certificate. I have my pfx file and want to create certificate object using X509Certificate. Need your help to convert that C# code to perl.my $url = "https://my rest services url"; my $jsonBody = '{ json details }'; my $client = REST::Client->new(); $client->addHeader('Content-Type', 'application/json'); $client->addHeader('charset', 'UTF-8'); $client->addHeader('Accept', 'application/json'); $client->addHeader('Authorization', 'Basic xxxxxxxxxxxxxxxxxxxxxxx'); $client->PUT($url, $jsonBody);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: convert C# to perl script (PKCS12 to PEM)
by hippo (Archbishop) on Sep 18, 2018 at 08:21 UTC | |
|
Re^3: convert C# to perl script
by Corion (Patriarch) on Sep 18, 2018 at 08:14 UTC |