Hi,
I have installed REST::Client and Crypt::X509 modules.
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);
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.
|