Posts Tagged ‘Linux’

Apache in SSL

Wednesday, April 2nd, 2008

Prva stvar, ki jo potrebujemo je SSL certifikat …

http://www.apache-ssl.org/#FAQ

Step one – create the key and request: openssl req -new > new.cert.csr

Step two – remove the passphrase from the key (optional):

openssl rsa -in privkey.pem -out new.cert.key

Step three – convert request into signed cert:

openssl x509 -in new.cert.csr -out new.cert.cert -req -signkey new.cert.key -days 365

The Apache-SSL directives that you need to use the resulting cert are:

SSLCertificateFile /path/to/certs/new.cert.cert
SSLCertificateKeyFile /path/to/certs/new.cert.key

lahko pred tem odskakljate v mapo, kjer želite imeti certifikat, drugače pa se bo pojavil v /root/… privzeto.

Debian, preprosti ukazi …

Sunday, March 16th, 2008

tty – Izpiše ime terminala v katerem se nahajate.
exit – Zapre trenutni terminal.
reset – >Obnovi terminal če ste kaj zaj**ali Smile .
pwd – Izpiše direktorij v katerem se nahajate.
hostname – Izpiše hostname računalnika Smile .
whoami – Uporabniško ime prijavljenega, če slučajno ne veste kdo ste in kako ste se znašli tam Grin .
id username – Izpiše uid, gid, skupino … glede na podano uporabniško ime.
date – Trenutni datum Smile .
who – Seznam, kdo vse je prijavljen, če mogoče niste sami Grin .
last – Seznam zadnjih prijavljenih uporabnikov …
uptime – Uptime Smile .
free – Stanje pomnilnika v kb Smile .
df -h – Particije, prost prostor … Smile

več pa na … http://www.unixguide.net/linux/linuxshortcuts.shtml Grin