Pagina 1 di 1

Slack12 + Apache + OpenSSL: non saprei...

Inviato: dom 9 set 2007, 18:48
da barkode
Ciao ragazzi,
ho un bel problema e in particolare non riesco a far partire apache con SSL. Il fatto è che non so come configurare il tutto, non so se mod_ssl è da installare o soltanto da includere... non so come si generano le chiavi... insomma, Help, i need somebody!

Inviato: dom 9 set 2007, 23:27
da alessiodf
sulla mia ArchLinux ho trovato questo:

Codice: Seleziona tutto

root@skynet[~]
~> cat /etc/httpd/conf/mod_ssl.txt
To use apache with SSL you will have to do three things:

1) Create an ssl key, request, and certificate.

  # This generates the cert and key (valid for 3650 days)
  # Be sure to enter the FQDN of your apache server as the "Common Name".
  openssl req -new -x509 -newkey rsa:1024 -days 3650 \
    -keyout server.key -out server.crt
  # This will remove the passphrase
  openssl rsa -in server.key -out server.key

2) Modify /etc/httpd/conf/extra/httpd-ssl.conf to use your new certificate.

   SSLCertificateFile /etc/httpd/conf/server.crt
   SSLCertificateKeyFile /etc/httpd/conf/server.key

3) Un-comment the SSL configuration line in /etc/httpd/conf/httpd.conf

   Include /etc/httpd/conf/extra/httpd-ssl.conf

Done! You can start apache with '/etc/rc.d/httpd start'.  If it hangs or fails
to start, check the /var/log/httpd/error_log or try running
'/usr/sbin/apachectl start' and looking for errors/prompts.
8)

Inviato: mar 11 set 2007, 11:02
da barkode
non ho la directory conf in httpd nè tantomeno mod_ssl.txt

Inviato: mar 11 set 2007, 11:14
da delta
se sai l'inglese:
http://slacksite.com/apache/certificate.html
spiega come fare a generare le chiavi e come configurare apache per usare mod_ssl.

altrimenti prova su google a cercare 'apache mod_ssl creazione chiavi' o qualcosa del genere.

spero di esserti stato d'aiuto ;)

Inviato: mar 11 set 2007, 11:53
da alessiodf
barkode ha scritto:non ho la directory conf in httpd nè tantomeno mod_ssl.txt
:? non era molto difficile da riadattare!

Inviato: mar 11 set 2007, 13:26
da barkode
non sono stato chiaro forse....
root@barkode:/etc/httpd# ls
extra/ magic mod_php.conf.example php.ini-dist server.csr
httpd.conf mime.types original/ php.ini-recommended server.key
httpd.conf~ mod_php.conf php.ini server.crt
root@barkode:/etc/httpd#