Sha256: 5d8dc4f4d96fb594dccd9b3367d49eb26d660f73a204876553088a50103e9564

Contents?: true

Size: 1.01 KB

Versions: 7

Compression:

Stored size: 1.01 KB

Contents

class CAConfig
  BASE_DIR = File.dirname(__FILE__)
  KEYPAIR_FILE = "#{BASE_DIR}/private/cakeypair.pem"
  CERT_FILE = "#{BASE_DIR}/cacert.pem"
  SERIAL_FILE = "#{BASE_DIR}/serial"
  NEW_CERTS_DIR = "#{BASE_DIR}/newcerts"
  NEW_KEYPAIR_DIR = "#{BASE_DIR}/private/keypair_backup"
  CRL_DIR = "#{BASE_DIR}/crl"

  NAME = [['C', 'JP'], ['O', 'www.ruby-lang.org'], ['OU', 'development']]
  CA_CERT_DAYS = 20 * 365
  CA_RSA_KEY_LENGTH = 2048

  CERT_DAYS = 18 * 365
  CERT_KEY_LENGTH_MIN = 1024
  CERT_KEY_LENGTH_MAX = 2048
  CDP_LOCATION = nil
  OCSP_LOCATION = nil

  CRL_FILE = "#{CRL_DIR}/jruby.crl"
  CRL_PEM_FILE = "#{CRL_DIR}/jruby.pem"
  CRL_DAYS = 14

  PASSWD_CB = Proc.new { |flag|
    print "Enter password: "
    pass = $stdin.gets.chop!
    # when the flag is true, this passphrase
    # will be used to perform encryption; otherwise it will
    # be used to perform decryption.
    if flag
      print "Verify password: "
      pass2 = $stdin.gets.chop!
      raise "verify failed." if pass != pass2
    end
    pass
  }
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
jruby-openssl-0.8.0.pre3 test/fixture/purpose/ca/ca_config.rb
jruby-openssl-0.8.0.pre2 test/fixture/purpose/ca/ca_config.rb
jruby-openssl-0.8.0.pre1 test/fixture/purpose/ca/ca_config.rb
jruby-openssl-maven-0.7.6.1 test/fixture/purpose/ca/ca_config.rb
jruby-openssl-0.7.7 test/fixture/purpose/ca/ca_config.rb
jruby-openssl-0.7.6.1 test/fixture/purpose/ca/ca_config.rb
jruby-openssl-0.7.5 test/fixture/purpose/ca/ca_config.rb