Sha256: e62e4f7c742f032fa0fde84b2c31efcba0e16a319897943fb9aeca2ed3d49ca0

Contents?: true

Size: 1.01 KB

Versions: 50

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 = 19 * 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

50 entries across 50 versions & 4 rubygems

Version Path
jruby-openssl-maven-0.7.4.1 test/fixture/purpose/ca/ca_config.rb
redcar-dev-0.12.1dev-java lib/openssl/test/fixture/purpose/ca/ca_config.rb
redcar-dev-0.12.0dev-java lib/openssl/test/fixture/purpose/ca/ca_config.rb
jruby-openssl-0.7.5.dev test/fixture/purpose/ca/ca_config.rb
jruby-openssl-0.7.4 test/fixture/purpose/ca/ca_config.rb
redcar-0.11 lib/openssl/test/fixture/purpose/ca/ca_config.rb
redcar-0.11.0dev lib/openssl/test/fixture/purpose/ca/ca_config.rb
jruby-openssl-0.7.3 test/fixture/purpose/ca/ca_config.rb
redcar-0.10 lib/openssl/test/fixture/purpose/ca/ca_config.rb
redcar-0.9.2 lib/openssl/test/fixture/purpose/ca/ca_config.rb
redcar-0.9.1 lib/openssl/test/fixture/purpose/ca/ca_config.rb
redcar-0.9.0 lib/openssl/test/fixture/purpose/ca/ca_config.rb
jruby-openssl-0.7.2 test/fixture/purpose/ca/ca_config.rb
redcar-0.8.1 lib/openssl/test/fixture/purpose/ca/ca_config.rb
redcar-0.8 lib/openssl/test/fixture/purpose/ca/ca_config.rb
redcar-0.7 lib/openssl/test/fixture/purpose/ca/ca_config.rb
redcar-0.6.1 lib/openssl/test/fixture/purpose/ca/ca_config.rb
redcar-0.6 lib/openssl/test/fixture/purpose/ca/ca_config.rb
redcar-0.6.1dev lib/openssl/test/fixture/purpose/ca/ca_config.rb
redcar-0.5.1 lib/openssl/test/fixture/purpose/ca/ca_config.rb