Skip to content

Tag Archives: apache

Create your own, self-signed Apache SSL certificates

The main reason to do this is to avoid certificate requests, etc.
While tried on gentoo linux, should work on any unix-like OS.
# openssl genrsa -des3 -out pass.key 1024 #this
# openssl genrsa -aes256 -out pass.key 2048 # or this
# openssl rsa -in pass.key -out server.key
# openssl req -new -key server.key -x509 -out server.crt -days 999
# cp [...]

PHP directory listing script

1 <?php/*
2 $Id: ldir.php,v 1.4 2007/12/10 20:07:24 streamkid Exp $
3 */
4
5 /* USAGE:
6 * $var = array (’foo’); where foo is the filesystem relative path where the files are relatively to script execution path. if you want the same (.) dir, ”, else the dir, ie [...]