From: elijah Date: Mon, 27 Oct 2014 21:46:16 +0000 (-0700) Subject: certs: fix csr generation (correct the key usage, remove msExtReq from attributes) X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=8067a244be533aac273725bef70618bae6f557cc;p=leap%2Fleap_cli.git certs: fix csr generation (correct the key usage, remove msExtReq from attributes) --- diff --git a/lib/leap_cli/commands/ca.rb b/lib/leap_cli/commands/ca.rb index ea4c8a8..ecc324b 100644 --- a/lib/leap_cli/commands/ca.rb +++ b/lib/leap_cli/commands/ca.rb @@ -303,7 +303,7 @@ module LeapCli; module Commands basic.ca = false } extensions << CertificateAuthority::Extensions::KeyUsage.new.tap {|keyusage| - keyusage.usage = ["digitalSignature", "nonRepudiation"] + keyusage.usage = ["digitalSignature", "keyEncipherment"] } extensions << CertificateAuthority::Extensions::ExtendedKeyUsage.new.tap {|extkeyusage| extkeyusage.usage = [ "serverAuth"] @@ -317,7 +317,6 @@ module LeapCli; module Commands )]) attrs = [ OpenSSL::X509::Attribute.new("extReq", attrval), - OpenSSL::X509::Attribute.new("msExtReq", attrval) ] csr.attributes = attrs