Fabio Invernizzi

/fabulus talks about him and his hacks…

Aggiornamento certificati SSL

Filed under: /me — fabio at 3:02 pm on Tuesday, February 14, 2006

Ogni volta che devo aggiornare un certificato devo andare a recuperare come fare… Questa volta poi ho scoperto che thunderbird si lamentava del seriale non univoco del nuovo certificato percui ho scoperto anche il parametro -set_serial :-)

per generare il certificato e la chiave privata:
openssl req -new -x509 -nodes -out dovecot.crt -keyout dovecot.key -set_serial 01 -days 365

per verificarne il contenuto:
openssl x509 -text -in dovecot.crt

La procedura è ovviamete la stessa anche per apache.

In caso si abbia un certificato con passphrase e la si voglia eliminare:
openssl rsa -in server.key -out server-without-pass.key

1 Comment

169

Comment by St0rM

16 February 2006 @ 3:42 am

Aaaaah, allora non sono l’unico che se lo scorda sempre!!! :-)

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.