Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Here's something that works on a Fedora 20 box:
#!/bin/bash if curl "https://www.dtdns.com/api/autodns.cfm?id=skunk.dtdns.net&pw=p +assword"; then : else echo Failed fi
But when I code the same thing in Perl, it fails .. unless I use an http connection.
#!/usr/bin/env perl use strict; use warnings; use LWP::Simple; if( defined(my $Response=get( "https://www.dtdns.com/api/autodns.cfm?id=skunk.dtdns.net&pw=passwor +d")) ){ print "$Response\n" } else { print "Update failed\n" }
Anyone able to suggest what's happening here?

Replies are listed 'Best First'.
Re: LWP::Simple Certificate Problem
by Corion (Patriarch) on May 04, 2014 at 10:00 UTC

    Most likely, you are using an earlier version of LWP::UserAgent, or have the wrong setup for SSL keys.

    For a better diagnosis, don't use LWP::Simple but the full LWP::UserAgent. Most likely you will then see a warning by Crypt::SSLeay or some other module about the keys not matching, a CA not being found or something like that.