Koozali.org: home of the SME Server

Certificato

Offline FrancescoC

  • *****
  • 226
  • +0/-0
Certificato
« on: May 07, 2010, 04:40:04 PM »
Ciao a tutti , scusate l'urgenza !
Ho seguito questo how to per i certificati http://wiki.contribs.org/Certificates_signed_by_own_CA
e adesso non mi funziona nè il server manager , nè webmail e neanche riesco ad accedere col browser testuale per vedere i log .
Che può essere successo ?
Grazie

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Certificato
« Reply #1 on: May 07, 2010, 04:54:46 PM »
che probabilmente hai fatto qualche errore, esattamente come successo qui

ripeti attentamente i passi

ah, i log li puoi guardare senza browser, li trovi in /var/log/httpd e sono dei file di testo

apri una console  e digita
Code: [Select]
tail -f /var/log/httpd/error_log

e prova ad accedere via web.. nella console vedrai scorrere le righe del log

Offline FrancescoC

  • *****
  • 226
  • +0/-0
Re: Certificato
« Reply #2 on: May 07, 2010, 04:59:51 PM »
Grazie per la velocità Stefano , ecco quello che esce dal log :
[Thu May 06 16:07:22 2010] [error] [client 93.147.116.222] Invalid method in req                                             uest e5;\x8f\x849\b@\x1a?\xc4Gy\xd0\x99\xce
[Thu May 06 17:19:05 2010] [error] [client 95.74.194.59] Invalid URI in request                                              \xfdj\xb6\v1\x8fx5
[Thu May 06 18:07:42 2010] [error] [client 93.65.79.242] Invalid method in reque                                             st \x9d\x8d\x0f\x1c\xe8\xe04Z\xaf\x03"y\xce\x9e
[Thu May 06 19:21:44 2010] [error] [client 90.220.64.53] Invalid method in reque                                             st K\x9b\xfb\x1e\xb4\xe4#\xac\xfc\x81|:z\x05\\\x90\xde\xa6\x8f\b%\x8cU\x12\xd1\x                                             aa\xa9\xc3k\xdd\x98c\xad\x06\x9a\x83o\x18
[Thu May 06 23:15:36 2010] [error] [client 93.148.188.49] File does not exist: /                                             home/e-smith/files/ibays/Primary/html/favicon.ico
[Thu May 06 23:15:39 2010] [error] [client 93.148.188.49] File does not exist: /                                             home/e-smith/files/ibays/Primary/html/favicon.ico
[Fri May 07 09:24:55 2010] [error] [client 80.183.122.166] Invalid method in req                                             uest \x9d"\xbf\x90\x9a\x82\xff\x96`\x94\x1b
[Fri May 07 09:27:03 2010] [error] [client 78.134.99.53] request failed: error r                                             eading the headers
[Fri May 07 15:31:11 2010] [error] [client 87.13.201.27] Invalid method in reque                                             st FK\xf8\x12\x0e\x89\xec\xed\x7fd\xb6\xd3Q\xbe\xedQ\xed\xd3h\xb9+\xf9B\x15\x80
[Fri May 07 15:49:24 2010] [notice] caught SIGTERM, shutting down

Offline FrancescoC

  • *****
  • 226
  • +0/-0
Re: Certificato
« Reply #3 on: May 07, 2010, 05:00:50 PM »
Inoltre se digito:
 /etc/rc.d/init.d/httpd restart
Mi esce questo :

Interruzione di httpd:                                     [  OK  ]
Avvio di httpd: Syntax error on line 135 of /etc/httpd/conf/httpd.conf:
SSLCertificateKeyFile: file '/home/e-smith/ssl.crt/xxx.xxx.it.key' does not                                              exist or is empty

Offline FrancescoC

  • *****
  • 226
  • +0/-0
Re: Certificato
« Reply #4 on: May 07, 2010, 05:08:50 PM »
In base a quello che ho scritto su ho copiato il file .key in /ssl.crt e il file .crt nella cartella /ssl.key e adesso rifunziona sia il server manager che la webmail . Ma se digito  /etc/rc.d/init.d/httpd restart ottengo :

Interruzione di httpd:                                     [  OK  ]
Avvio di httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
                                                           [FALLITO]
Che vuol dire ?
Grazie

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Certificato
« Reply #5 on: May 07, 2010, 05:28:37 PM »
non riavviare così il servizio

Code: [Select]
service httpd-e-smith restart
service httpd-admin restart

HTH

Offline FrancescoC

  • *****
  • 226
  • +0/-0
Re: Certificato
« Reply #6 on: May 07, 2010, 05:53:58 PM »
Grazie mille adesso è tutto ok . :P