#!/bin/sh
SERVER=ssl.mioserverweb.dominio
PRIVATE_KEY=$SERVER.private.key
CERTIFICATE_FILE=$SERVER.crt
VALID_DAYS=365
echo Delete old private key
rm $PRIVATE_KEY
echo Create new private/public-keys without passphrase for server
openssl genrsa -out $PRIVATE_KEY 2048
echo Create selfsigned certificate
rm $CERTIFICATE_FILE
# From man req:
# -x509
# this option outputs a self signed certificate instead
# of a certificate request. This is typically used to
# generate a test certificate or a self signed root CA.
# The extensions added to the certificate (if any) are
# specified in the configuration file.
openssl req -new
-days $VALID_DAYS
-key $PRIVATE_KEY
-x509
-out $CERTIFICATE_FILE
echo private-keyfile is $PRIVATE_KEY
echo server-certificate-file is $CERTIFICATE_FILE
ls -l $PRIVATE_KEY $CERTIFICATE_FILE |
Fabio Laganà bash, Debian, Linux, SSL certificates, Debian, Howto, SSL, webserver
Searching
Installing a gem in fair enough but what if you don’t know what it’s called?
Well, one way of finding a gem is to look at the rubygems homepage at http://rubyforge.org/projects/rubygems/
Read more…
Fabio Laganà Ruby on Rails, RubyGems Howto, Ruby on Rails, RubyGems
The soft-format code for Series 60 phones is *#7370# . You enter this code as you would enter a phone number in the Phone application. It performs a format of the Internal drive – All data will be lost if you use this feature.

The method of performing a hard-format, i.e resetting it completely to factory defaults and removing all data, is as follows:
- Switch off the phone.
- Hold down the following three buttons: Green (call answer) button, * button, and ’3′ button
- While holding these buttons, press the power button and switch on the phone
- When the message ‘Formatting’ appears on the screen, release all of the buttons
Note that you shouldn’t switch the phone off or remove the battery when performing either of these operations, and it’s advised that the handset has a reasonable amount of battery charge before performing a format/reset.
Fabio Laganà friends, Nokia 6600, default, factory, Howto, Nokia