Archive for February, 2010

genkey to generate your own certificates

there are some methods:

1. use openssl such as:
openssl genrsa -out /etc/httpd/conf/ssl.key/myserver.net.key 1024
openssl req -new -key /etc/httpd/conf/ssl.key/myserver.net.key -out /etc/httpd/conf/ssl.csr/myserver.net.key.csr
openssl req -new -key /etc/httpd/conf/ssl.key/myserver.net.key -x509 -out /etc/httpd/conf/ssl.crt/myserver.net.crt -days 999

2. install crypto-utils
sudo /usr/bin/genkey linuxdict.com –days 1024
follow the instruction, very simple, isn’t it ?

Then you can use your own cert for your application such as apache,postfix and so on.

No Comments

mount: you must specify the filesystem type

I have one raw file contains system:
$file my.raw
my.raw: x86 boot sector; partition 1: ID=0x83, active, starthead 1, startsector 63, 64259937 sectors; partition 2: ID=0x5, starthead 254, startsector 64260000, 2843505 sectors
try
$mount -o loop my.raw /mnt
mount: you must specify the filesystem type

Solution:
$mount -o loop,offset=32256 my.raw /mnt

Root:
The number too big for calculations, so set offset here.

No Comments

Happy Spring Festival

Enjoy yourself, Have a good Time.

No Comments