A piggy bank of commands, fixes, succinct reviews, some mini articles and technical opinions from a (mostly) Perl developer.

Jump to

Quick reference

Showing posts with label https. Show all posts
Showing posts with label https. Show all posts

Git cache password over https

error: cannot run git-credential-cache--daemon: No such file or directory
fatal: unable to start cache daemon: No such file or directory

# fix:
wget http://example.com/git-daemon-1.7.12.4-0.7.1.x86_64.rpm
sudo rpm -i git-daemon-1.7.12.4-0.7.1.x86_64.rpm
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=28800' # 8 hours

How to work around certificate errors in Perl

PERL_LWP_SSL_VERIFY_HOSTNAME=0 perl script.pl

or

my $mech = WWW::Mechanize->new(
    ssl_opts => { SSL_verify_mode => 'SSL_VERIFY_NONE'},
);

HTTPS in Perl

After Crypt::SSLeay or IO::Socket::SSL is installed, LWP will automatically work for URLs starting https://