# File lib/ezsig.rb, line 253 def send_to_pkyp(pem) # Net::HTTP.start("localhost", 9000) do |query| Net::HTTP.start("pkyp.org", 80) do |query| output=URI.escape(pem).gsub("+","%2b") response=query.post "/register","body="+output if response.code=="302" response["Location"]=~/([0123456789abcdef]{40}$)/ $1 else raise "Error occured (#{response.code}): #{response.body}" end end end