pls check file defaut.ssl

Discussion in 'General' started by georges, Apr 14, 2012.

  1. georges

    georges New Member

    Hi,
    Rent 2 servers
    Can'install ssl certificate
    I think the problem is likely due to modifications at these lines in red in the file default-ssl. If I comment out these lines, apache doesn't work! And perhaps it implies some interference withe the great tuto made by Falko (Securing your isp....).

    It would be nice if somebody post this file /etc/apache2/sites-enabled/default-ssl so that i can compare and modify my own files.

    Thanks

    regards

    francois

    Code:
          [B][COLOR="Red"] SSLEngine on[/COLOR][/B]
    
            #   A self-signed (snakeoil) certificate can be created by installing
            #   the ssl-cert package. See
            #   /usr/share/doc/apache2.2-common/README.Debian.gz for more info.
            #   If both key and certificate are stored in the same file, only the
            #   SSLCertificateFile directive is needed.
            # SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
            # SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
            [B][COLOR="Red"]SSLCertificateFile /etc/ssl/certs/name-of-the-server.crt
            SSLCertificateKeyFile /etc/ssl/private/name-of-the-server.key[/COLOR][/B]
    
            #   Server Certificate Chain:
            #   Point SSLCertificateChainFile at a file containing the
            #   concatenation of PEM encoded CA certificates which form the
            #   certificate chain for the server certificate. Alternatively
            #   the referenced file can be the same as SSLCertificateFile
            #   when the CA certificates are directly appended to the server
            #   certificate for convinience.
            #SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt
    
            #   Certificate Authority (CA):
            #   Set the CA certificate verification path where to find CA
            #   certificates for client authentication or alternatively one
            #   huge file containing all of them (file must be PEM encoded)
            #   Note: Inside SSLCACertificatePath you need hash symlinks
            #         to point to the certificate files. Use the provided
            #         Makefile to update the hash symlinks after changes.
            #SSLCACertificatePath /etc/ssl/certs/
            #SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt
    
            #   Certificate Revocation Lists (CRL):
            #   Set the CA revocation path where to find CA CRLs for client
            #   authentication or alternatively one huge file containing all
            #   of them (file must be PEM encoded)
            #   Note: Inside SSLCARevocationPath you need hash symlinks
            #         to point to the certificate files. Use the provided
            #         Makefile to update the hash symlinks after changes.
            #SSLCARevocationPath /etc/apache2/ssl.crl/
            #SSLCARevocationFile /etc/apache2/ssl.crl/ca-bundle.crl
    
            #   Client Authentication (Type):
            #   Client certificate verification type and depth.  Types are
            #   none, optional, require and optional_no_ca.  Depth is a
            #   number which specifies how deeply to verify the certificate
            #   issuer chain before deciding the certificate is not valid.
            #SSLVerifyClient require
            #SSLVerifyDepth  10
    
            #   Access Control:
            #   With SSLRequire you can do per-directory access control based
            #   on arbitrary complex boolean expressions containing server
            #   variable checks and other lookup directives.  The syntax is a
            #   mixture between C and Perl.  See the mod_ssl documentation
            #   for more details.
            #<Location />
            #SSLRequire (    %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
            #            and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
            #            and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
            #            and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
            #            and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20       ) \
            #           or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
            #</Location>
    
            #   SSL Engine Options:
            #   Set various options for the SSL engine.
            #   o FakeBasicAuth:
            #     Translate the client X.509 into a Basic Authorisation.  This means that
            #     the standard Auth/DBMAuth methods can be used for access control.  The
            #     user name is the `one line' version of the client's X.509 certificate.
            #     Note that no password is obtained from the user. Every entry in the user
            #     file needs this password: `xxj31ZMTZzkVA'.
            #   o ExportCertData:
            #     This exports two additional environment variables: SSL_CLIENT_CERT and
            #     SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
            #     server (always existing) and the client (only existing when client
            #     authentication is used). This can be used to import the certificates
            #     into CGI scripts.
            #   o StdEnvVars:
            #     This exports the standard SSL/TLS related `SSL_*' environment variables.
            #     Per default this exportation is switched off for performance reasons,
            #     because the extraction step is an expensive operation and is usually
            #     useless for serving static content. So one usually enables the
            #     exportation for CGI and SSI requests only.
            #   o StrictRequire:
            #     This denies access when "SSLRequireSSL" or "SSLRequire" applied even
            #     under a "Satisfy any" situation, i.e. when it applies access is denied
            #     and no other module can change it.
            #   o OptRenegotiate:
            #     This enables optimized SSL connection renegotiation handling when SSL
            #     directives are used in per-directory context.
            #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
    
    
    
    
     
    Last edited: Apr 15, 2012
  2. falko

    falko Super Moderator ISPConfig Developer

    Are there any errors in Apache's error log?
     
  3. georges

    georges New Member

    Hi

    Form some reasons, it always load default SSL generated by the housing company
    Problems were partially solved
    Comment out some red lines and the software get the right CA (not sure what happened).
    Add also some lines to roundcube (from another tuto)
    Then the connection get secured with ispconfig and roundcube on the port 8080.
    But the port 443 cannot get https in any way, problem of certificate
    Even there is a listen 443. Not sure why, but we don't want lost too much time and we can live with that.
    Read also your manual but cannot get your philosophy
    The certificate is for the server.
    It’s my understanding we can add a ssl certificate for a web site, without an additional IP.
    If we want a second website with ssl, we have to add a second ip
    Is that correct ?
    In this case, what is the best way to secure the access of the password website/stats.
    Could we use 8080? 443? What ist the philosophy behind ispconfig?
    Users meet difficulties with their browser (IE doesn't display the home page of ispconfig if not https, firefox dipay warning, etc.)
    What is the best way to redirect hhtp /name-of-the web-site:8080/ to https: server-name/ispconfigpanel
    What is the best way to redirect http /name-of-the web-site/mail to https: server-name/roundcube

    thanks for your time and this great product

    regards

    francois
     
    Last edited: Apr 16, 2012

Share This Page