]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
in 'cert csr', use fake ca for testing.
authorelijah <elijah@riseup.net>
Tue, 8 Jan 2013 09:56:07 +0000 (01:56 -0800)
committerelijah <elijah@riseup.net>
Tue, 8 Jan 2013 09:56:07 +0000 (01:56 -0800)
lib/leap_cli/commands/ca.rb

index bf5567462036b755e79444de0319b14e0cc47849..20a5fa7a86d5ebb13e2504ebc035f0394da04b90 100644 (file)
@@ -158,6 +158,14 @@ module LeapCli; module Commands
             log "please replace this file with the real certificate you get from a CA using #{Path.relative_path([:commercial_csr, manager.provider.domain])}"
           end
         #end
+
+        # FAKE CA
+        unless file_exists? :commercial_ca_cert
+          log :using, "generated CA in place of commercial CA for testing purposes" do
+            write_file! :commercial_ca_cert, read_file!(:ca_cert)
+            log "please also replace this file with the CA cert from the commercial authority you use."
+          end
+        end
       end
     end
   end