coreosbr / web-shell

Automatically exported from code.google.com/p/web-shell
0 stars 0 forks source link

make_certificate.sh does not delete /tmp/random.dat #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run make_certificate.sh in a directory other than /tmp
2. ls -l /tmp/random.dat (still sitting there)
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

0.9.5

Please provide any additional information below.

All you need to do is apply this patch:

--- make_certificate.sh 2008-07-13 12:27:17.000000000 -0700
+++ make_certificate.sh.corrected       2008-07-13 12:26:18.000000000 -0700
@@ -1,5 +1,5 @@
 #! /bin/sh
 gzip -c --best /var/log/system.log > /tmp/random.dat
 openssl rand -rand file:random.dat 0
-rm random.dat
+rm /tmp/random.dat
 openssl req  -config "make_certificate.cfg" -keyout "webshell.pem" -newkey
rsa:1024 -nodes -x509 -days 365 -out "webshell.pem"

Original issue reported on code.google.com by hdi...@gmail.com on 13 Jul 2008 at 7:30

GoogleCodeExporter commented 9 years ago
Shouldn't this line be changed as well?
 openssl rand -rand file:random.dat 0

Original comment by stuart.g...@gmail.com on 1 Aug 2008 at 5:26

GoogleCodeExporter commented 9 years ago
This issue has been made irrelevant by the fix to issue 42.

Please test.

Original comment by aleksand...@gmail.com on 21 Oct 2008 at 9:31