Skip to content

Instantly share code, notes, and snippets.

@mndrix
Created March 13, 2011 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mndrix/867863 to your computer and use it in GitHub Desktop.
Save mndrix/867863 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
use File::Temp qw( tempfile );
use autodie qw( system );
my ( undef, $filename ) = tempfile( 'otc-XXXX', TMPDIR => 1 );
system "pbpaste | gpg --clearsign > $filename";
system "scp $filename example.com:/var/www/otc-auth.asc";
system "echo -n ';;gpg verify http://www.example.com/otc-auth.asc' | pbcopy";
exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment