This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RubyGoal - Fútbol para Rubistas | |
# | |
# Este documento contiene varias implementaciones mínimas de un entrenador de RubyGoal.# | |
# | |
# Esta clase debe implementar, como mínimo, los métodos `name` y `formation(match)` | |
# Esta clase debe ser implementada dentro del módulo Rubygoal | |
module Rubygoal | |
class MyCoach < Coach | |
# Indica el nombre del equipo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'openssl' | |
key = OpenSSL::PKey::DSA.generate 1024 | |
puts key.to_pem | |
cert = OpenSSL::X509::Certificate.new | |
cert.version = 2 | |
cert.serial = 1 | |
cert.subject = OpenSSL::X509::Name.new [['CN', 'Test CA']] | |
cert.issuer = cert.subject |