add script to register let's encrypt keys and other useful bin/postal commands

This commit is contained in:
Adam Cooke
2017-04-26 14:08:11 +01:00
parent 2a029f94e5
commit 8c4fa7e169
2 changed files with 26 additions and 1 deletions
+15
View File
@@ -0,0 +1,15 @@
require_relative '../config/application'
require 'postal/lets_encrypt'
if ARGV[0].nil?
puts "e-mail address missing"
exit 1
end
begin
Postal::LetsEncrypt.register_private_key(ARGV[0])
puts "Done"
rescue => e
puts "#{e.class}: #{e.message}"
exit 1
end