Module: RubyEasyRSA::Commands::Mixins::SSLConfig
- Included in:
- BuildCA, BuildClientFull, BuildClientServerFull, BuildServerFull, ExportP12, ExportP7, GenCRL, GenDH, GenReq, ImportReq, InitPKI, Renew, Revoke, SetECPass, SetRSAPass, ShowCA, ShowCert, ShowReq, SignReq, UpdateDB, Upgrade
- Defined in:
- lib/ruby_easy_rsa/commands/mixins/ssl_config.rb
Instance Method Summary collapse
-
#configure_command(builder, opts) ⇒ Object
rubocop:disable Style/RedundantAssignment rubocop:disable Metrics/MethodLength rubocop:disable Metrics/AbcSize.
Instance Method Details
#configure_command(builder, opts) ⇒ Object
rubocop:disable Style/RedundantAssignment rubocop:disable Metrics/MethodLength rubocop:disable Metrics/AbcSize
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/ruby_easy_rsa/commands/mixins/ssl_config.rb', line 10 def configure_command(builder, opts) builder = super(builder, opts) builder = with_digest(builder, opts[:digest]) builder = with_expires_in_days(builder, opts[:expires_in_days]) builder = with_key_size_in_bits(builder, opts[:key_size_in_bits]) builder = with_distinguished_name_mode( builder, opts[:distinguished_name_mode] ) builder = with_common_name(builder, opts[:common_name]) builder = with_country(builder, opts[:country]) builder = with_province(builder, opts[:province]) builder = with_city(builder, opts[:city]) builder = with_organisation(builder, opts[:organisation]) builder = with_organisational_unit( builder, opts[:organisational_unit] ) builder = with_email(builder, opts[:email]) builder end |