- At the shell prompt, run the command openssl genrsa -out key.pem
- This will create the file key.pem which is your private key.
- Run the command openssl req -new -key key.pem -out req.pem . When it asks for the common name, be sure to enter the full hostname of your server as used in the URL, like www.yourserver.com. This will create the file req.pem, which is the certificate signing request (CSR)
- Send the CSR to your certificate authority by whatever method they use. They should send you back a file that starts with -----BEGIN CERTIFICATE----- which can be put in the file cert.pem.
- In Webmin, enter the Webmin Configuration module and click on SSL Encryption.
In the SSL Encryption form (shown in Figure 3-2), enter the path to your key.pem file into the Private key file field, and the path to your cert.pem file into the Certificate file field. - Click the Save button to switch to the new certificate.
domenica 19 agosto 2007
SSL in WebMin
sabato 7 luglio 2007
getElementByClass
Un metodo elegante per catturare gli elementi di una determinata classe.Le funzioni JS prevedono di solito di recuperare gli elementi dall'id, dal nome, ma non dalla classe.Questa funzione permette di farlo!
Questo script è stato creato da: Dustin Diaz
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if (node == null) node = document;
if (tag == null) tag = '*'; var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp("(^\\s)"+searchClass+"(\\s$)");
for (i = 0, j = 0; i <>
if (pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
}
Questo script è stato creato da: Dustin Diaz
function getElementsByClass(searchClass,node,tag) {
var classElements = new Array();
if (node == null) node = document;
if (tag == null) tag = '*'; var els = node.getElementsByTagName(tag);
var elsLen = els.length;
var pattern = new RegExp("(^\\s)"+searchClass+"(\\s$)");
for (i = 0, j = 0; i <>
if (pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
}
martedì 1 maggio 2007
IIS e CGI: come aumentare il timeout
IIS ha un tempo limite per l'esecuzione dei CGI fissato a 300 secondi. Questo è un articolo dove viene spiegato come aumentare questo limite sia con IIS5 (facile) sia con IIS6 (più complicato).
http://www.iis-resources.com/modules/AMS/article.php?storyid=509&page=0
http://www.iis-resources.com/modules/AMS/article.php?storyid=509&page=0
lunedì 30 aprile 2007
YUM: aggiornamento automatico Linux Fedora
Il programma yum permette di aggiornare automaticamente un server Linux Fedora, calcolando automaticamente tutte le dipendenze dei pacchetti che installa o aggiorna.
Va lanciato dal terminale con i seguenti comandi:
Va lanciato dal terminale con i seguenti comandi:
- yum update
per aggiornare i pacchetti installati sul computer - yum install nomepacchetto
per installare un pacchetto rpm - yum remove nomepacchetto
per rimuovere un pacchetto
I nomi dei pacchetti possono anche essere parziali, per esempio: yum install mozill* installa tutti i pacchetti che iniziano con mozilla.
martedì 24 aprile 2007
Registry Edits for Windows XP
In questa pagina
http://www.kellys-korner-xp.com/xp_tweaks.htm
c'è una miniera di "Tweaks and Tips" per Windows XP.
http://www.kellys-korner-xp.com/xp_tweaks.htm
c'è una miniera di "Tweaks and Tips" per Windows XP.
FrontPage e la mancata memorizzazione della password
Se FrontPage "dimentica" la password di accesso nonostante si tenti in tutti i modi di memorizzarla con l'apposito check box, si può tentare con questa procedura:
- andare nelle "Opzioni Internet" di Internet Explorer
- nella sezione "Protezione" cliccare su "Livello personalizzato"
- scorrere le varie voci sino a "Autenticaziuoine utente"
- selezionare l'opzione "Accesso automatico con nome utente e password correnti"
venerdì 20 aprile 2007
Real Video embedded in HTML
Questo codice inserisce il RealPlayer nella pagina HTML
<table border="0" cellpadding="0" align="center">
<tr>
<td>
<object id="rvocx" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="320" height="240">
<param name="src" value="http://indirizzo">
<param name="autostart" value="0">
<param name="controls" value="imagewindow">
<param name="console" value="video">
<param name="loop" value="0">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
<embed src="http://indirizzo" width="320" height="240" loop="false" type="audio/x-pn-realaudio-plugin" controls="imagewindow" console="video" autostart="false">
</embed>
</object>
</td>
</tr>
<tr>
<td>
<object id="rvocx" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="320" height="30">
<param name="src" value="http://indirizzo">
<param name="autostart" value="0">
<param name="controls" value="ControlPanel">
<param name="console" value="video">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="LOOP" value="0">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#000000">
<embed src="http://indirizzo" width="320" height="30" controls="ControlPanel" type="audio/x-pn-realaudio-plugin" console="video" autostart="false">
</embed>
</object>
</td>
</tr>
</table>
Per ulteriori informazioni e per un generatore automatico di codice: Embedded Media HTML Generator
Iscriviti a:
Post (Atom)
