Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 16 lines (15 sloc) 0.588 kB
#!/usr/bin/ruby
["dsaparam.pem", "dsa_priv.pem", "dsa_pub.pem"].each do |file|
if File.exist? file
puts "There's already a #{file} here! Move it aside or be more careful!"
exit
end
end
openssl = "/usr/bin/openssl"
`#{openssl} dsaparam 1024 < /dev/urandom > dsaparam.pem`
`#{openssl} gendsa dsaparam.pem -out dsa_priv.pem`
`#{openssl} dsa -in dsa_priv.pem -pubout -out dsa_pub.pem`
`rm dsaparam.pem`
puts "\nGenerated private and public keys: dsa_priv.pem and dsa_pub.pem.\n
BACK UP YOUR PRIVATE KEY AND KEEP IT SAFE!\n
If you lose it, your users will be unable to upgrade!\n"
Jump to Line
Something went wrong with that request. Please try again.