aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-01-08 01:56:07 -0800
committerelijah <elijah@riseup.net>2013-01-08 01:56:07 -0800
commit9b15911de0b2715a9d76a57eb865e7765af8b2e4 (patch)
tree47b774e4ba39a4678405b11f666387901cc0c950
parenta40a6f49d7f0ddc2bfc9de49c1d8ed8922c79697 (diff)
downloadleap_cli-9b15911de0b2715a9d76a57eb865e7765af8b2e4.tar.gz
leap_cli-9b15911de0b2715a9d76a57eb865e7765af8b2e4.tar.bz2
in 'cert csr', use fake ca for testing.
-rw-r--r--lib/leap_cli/commands/ca.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/leap_cli/commands/ca.rb b/lib/leap_cli/commands/ca.rb
index bf55674..20a5fa7 100644
--- a/lib/leap_cli/commands/ca.rb
+++ b/lib/leap_cli/commands/ca.rb
@@ -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