From 7443553abaf4d27c14741e108541560018a64507 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 21 Nov 2012 12:41:55 -0800 Subject: clean up dh params generated by certtool. --- lib/leap_cli/commands/ca.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/leap_cli/commands/ca.rb b/lib/leap_cli/commands/ca.rb index 1e69c90..5aa0cde 100644 --- a/lib/leap_cli/commands/ca.rb +++ b/lib/leap_cli/commands/ca.rb @@ -73,6 +73,8 @@ module LeapCli; module Commands if cmd_exists?('certtool') log 0, 'Generating DH parameters (takes a long time)...' output = assert_run!('certtool --generate-dh-params --sec-param high') + output.sub! /.*(-----BEGIN DH PARAMETERS-----.*-----END DH PARAMETERS-----).*/m, '\1' + output << "\n" write_file!(:dh_params, output) else log 0, 'Generating DH parameters (takes a REALLY long time)...' -- cgit v1.2.3