home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 May / Gamestar_62_2004-05_dvd.iso / Programy / apache_2.0.48-win32-x86-no_ssl.msi / Data.Cab / F252916_ssl_faq.xml < prev    next >
Extensible Markup Language  |  2003-10-13  |  52KB  |  1,006 lines

  1. <?xml version='1.0' encoding='UTF-8' ?>
  2. <!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
  3. <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
  4. <manualpage metafile="ssl_faq.xml.meta">
  5. <parentdocument href="./">SSL/TLS</parentdocument>
  6.  
  7.   <title>SSL/TLS Strong Encryption: FAQ</title>
  8.  
  9. <summary>
  10. <blockquote>
  11. <p>The wise man doesn't give the right answers,
  12. he poses the right questions.</p>
  13. <p class="cite">-- <cite>Claude Levi-Strauss</cite></p>
  14.  
  15. </blockquote>
  16. <p>This chapter is a collection of frequently asked questions (FAQ) and
  17. corresponding answers following the popular USENET tradition. Most of these
  18. questions occurred on the Newsgroup <code><a href="news:comp.infosystems.www.servers.unix"
  19. >comp.infosystems.www.servers.unix</a></code> or the mod_ssl Support
  20. Mailing List <code><a href="mailto:modssl-users@modssl.org"
  21. >modssl-users@modssl.org</a></code>. They are collected at this place
  22. to avoid answering the same questions over and over.</p>
  23.  
  24. <p>Please read this chapter at least once when installing mod_ssl or at least
  25. search for your problem here before submitting a problem report to the
  26. author.</p>
  27. </summary>
  28.  
  29. <section id="about"><title>About The Module</title>
  30. <ul>
  31. <li><a href="#history">What is the history of mod_ssl?</a></li>
  32. <li><a href="#y2k">mod_ssl and Year 2000?</a></li>
  33. <li><a href="#wassenaar">mod_ssl and Wassenaar Arrangement?</a></li>
  34. </ul>
  35.  
  36. <section id="history"><title>What is the history of mod_ssl?</title>
  37. <p>The mod_ssl v1 package was initially created in April 1998 by <a
  38.     href="mailto:rse@engelschall.com">Ralf S. Engelschall</a> via porting <a
  39.     href="mailto:ben@algroup.co.uk">Ben Laurie</a>'s <a
  40.     href="http://www.apache-ssl.org/">Apache-SSL</a> 1.17 source patches for
  41.     Apache 1.2.6 to Apache 1.3b6. Because of conflicts with Ben
  42.     Laurie's development cycle it then was re-assembled from scratch for
  43.     Apache 1.3.0 by merging the old mod_ssl 1.x with the newer Apache-SSL
  44.     1.18. From this point on mod_ssl lived its own life as mod_ssl v2. The
  45.     first publicly released version was mod_ssl 2.0.0 from August 10th,
  46.     1998. As of this writing (August 1999) the current mod_ssl version 
  47.     is 2.4.0.</p>
  48.  
  49.     
  50.     <p>After one year of very active development with over 1000 working hours and
  51.     over 40 releases mod_ssl reached its current state. The result is an
  52.     already very clean source base implementing a very rich functionality.
  53.     The code size increased by a factor of 4 to currently a total of over
  54.     10.000 lines of ANSI C consisting of approx. 70% code and 30% code
  55.     documentation. From the original Apache-SSL code currently approx. 5% is
  56.     remaining only.</p>
  57.     
  58.     <p>After the US export restrictions for cryptographic software were
  59.     opened, mod_ssl was integrated into the code base of Apache V2 in 2001.</p>
  60. </section>
  61.  
  62. <section id="y2k"><title>Is mod_ssl Year 2000 compliant?</title>
  63. <p>Yes, mod_ssl is Year 2000 compliant.</p>
  64.     
  65.     <p>Because first mod_ssl internally never stores years as two digits.
  66.     Instead it always uses the ANSI C & POSIX numerical data type
  67.     <code>time_t</code> type, which on almost all Unix platforms at the moment
  68.     is a <code>signed long</code> (usually 32-bits) representing seconds since
  69.     epoch of January 1st, 1970, 00:00 UTC. This signed value overflows in
  70.     early January 2038 and not in the year 2000. Second, date and time
  71.     presentations (for instance the variable ``<code>%{TIME_YEAR}</code>'')
  72.     are done with full year value instead of abbreviating to two digits.</p>
  73.  
  74.     
  75.     <p>Additionally according to a <a
  76.     href="http://www.apache.org/docs/misc/FAQ.html#year2000">Year 2000
  77.     statement</a> from the Apache Group, the Apache webserver is Year 2000
  78.     compliant, too. But whether OpenSSL or the underlying Operating System
  79.     (either a Unix or Win32 platform) is Year 2000 compliant is a different
  80.     question which cannot be answered here.</p>
  81. </section>
  82.  
  83. <section id="wassenaar"><title>What about mod_ssl and the Wassenaar Arrangement?</title>
  84. <p>First, let us explain what <dfn>Wassenaar</dfn> and its <dfn>Arrangement on
  85.     Export Controls for Conventional Arms and Dual-Use Goods and
  86.     Technologies</dfn> is: This is a international regime, established 1995, to
  87.     control trade in conventional arms and dual-use goods and technology. It
  88.     replaced the previous <dfn>CoCom</dfn> regime. 33 countries are signatories:
  89.     Argentina, Australia, Austria, Belgium, Bulgaria, Canada, Czech Republic,
  90.     Denmark, Finland, France, Germany, Greece, Hungary, Ireland, Italy, Japan,
  91.     Luxembourg, the Netherlands, New Zealand, Norway, Poland, Portugal, Republic
  92.     of Korea, Romania, Russian Federation, Slovak Republic, Spain, Sweden,
  93.     Switzerland, Turkey, Ukraine, the United Kingdom and the United States. For more
  94.     details look at <a
  95.     href="http://www.wassenaar.org/">http://www.wassenaar.org/</a>.</p>
  96.  
  97.     
  98.     <p>In short: The aim of the Wassenaar Arrangement is to prevent the build up
  99.     of military capabilities that threaten regional and international security
  100.     and stability. The Wassenaar Arrangement controls the export of
  101.     cryptography as a dual-use good, i.e., one that has both military and
  102.     civilian applications. However, the Wassenaar Arrangement also provides an
  103.     exemption from export controls for mass-market software and free software.</p>
  104.     
  105.     <p>In the current Wassenaar <cite>List of Dual Use Goods and Technologies And
  106.     Munitions</cite>, under <q>GENERAL SOFTWARE NOTE (GSN)</q> it says
  107.     <q>The Lists do not control "software" which is either: 1. [...] 2. "in
  108.     the public domain".</q> And under <q>DEFINITIONS OF TERMS USED IN
  109.     THESE LISTS</q> one can find the definition: <q>In the public
  110.     domain": This means "technology" or "software" which has been made
  111.     available without restrictions upon its further dissemination. N.B.
  112.     Copyright restrictions do not remove "technology" or "software" from being
  113.     "in the public domain".</q></p>
  114.     
  115.     <p>So, both mod_ssl and OpenSSL are <q>in the public domain</q> for the purposes
  116.     of the Wassenaar Agreement and its <q>List of Dual Use Goods and
  117.     Technologies And Munitions List</q>.</p>
  118.  
  119.     <p>So, mod_ssl and OpenSSL are not affected by the Wassenaar Agreement.</p>
  120. </section>
  121. </section>
  122. <!-- /about -->
  123.  
  124. <section id="installation"><title>About Installation</title>
  125. <ul>
  126. <li><a href="#coredump">Core dumps for HTTPS requests?</a></li>
  127. <li><a href="#mutex">Permission problem on SSLMutex</a></li>
  128. <li><a href="#mm">Shared memory and process size?</a></li>
  129. <li><a href="#entropy">PRNG and not enough entropy?</a></li>
  130. </ul>
  131.  
  132. <section id="coredump"><title>When I access my website the first time via HTTPS I get a core dump?</title>
  133. <p>There can be a lot of reasons why a core dump can occur, of course.
  134.     Ranging from buggy third-party modules, over buggy vendor libraries up to
  135.     a buggy mod_ssl version. But the above situation is often caused by old or
  136.     broken vendor DBM libraries. To solve it either build mod_ssl with the
  137.     built-in SDBM library (specify <code>--enable-rule=SSL_SDBM</code> at the
  138.     APACI command line) or switch from <code>SSLSessionCache dbm:</code> to the
  139.     newer <code>SSLSessionCache shm:</code>'' variant (after you have rebuilt
  140.     Apache with MM, of course).</p>
  141. </section>
  142.  
  143. <section id="mutex"><title>When I startup Apache I get permission errors related to SSLMutex?</title>
  144. <p>When you receive entries like ``<code>mod_ssl: Child could not open
  145.     SSLMutex lockfile /opt/apache/logs/ssl_mutex.18332 (System error follows)
  146.     [...] System: Permission denied (errno: 13)</code>'' this is usually
  147.     caused by to restrictive permissions on the <em>parent</em> directories.
  148.     Make sure that all parent directories (here <code>/opt</code>,
  149.     <code>/opt/apache</code> and <code>/opt/apache/logs</code>) have the x-bit
  150.     set at least for the UID under which Apache's children are running (see
  151.     the <directive module="mpm_common">User</directive> directive of Apache).</p>
  152. </section>
  153.  
  154. <section id="mm"><title>When I use the MM library and the shared memory cache each process grows
  155. 1.5MB according to `top' although I specified 512000 as the cache size?</title>
  156. <p>The additional 1MB are caused by the global shared memory pool Apache
  157.     allocates for all modules and which is not used by mod_ssl for
  158.     various reasons. So the actually allocated shared memory is always
  159.     1MB more than what you specify on <directive module="mod_ssl">SSLSessionCache</directive>.
  160.     But don't be confused by the display of `top': although is
  161.     indicates that <em>each</em> process grow, this is not reality, of
  162.     course. Instead the additional memory consumption is shared by
  163.     all processes, i.e. the 1.5MB are allocated only once per Apache
  164.     instance and not once per Apache server process.</p>
  165. </section>
  166.  
  167. <section id="entropy"><title>When I fire up the server, mod_ssl stops with the error
  168. "Failed to generate temporary 512 bit RSA private key", why?</title>
  169. <p>Cryptographic software needs a source of unpredictable data
  170.     to work correctly. Many open source operating systems provide
  171.     a "randomness device" that serves this purpose (usually named
  172.     <code>/dev/random</code>). On other systems, applications have to
  173.     seed the OpenSSL Pseudo Random Number Generator (PRNG) manually with
  174.     appropriate data before generating keys or performing public key
  175.     encryption. As of version 0.9.5, the OpenSSL functions that need
  176.     randomness report an error if the PRNG has not been seeded with
  177.     at least 128 bits of randomness. So mod_ssl has to provide enough
  178.     entropy to the PRNG to work correctly.  For this one has to use the
  179.     <code>SSLRandomSeed</code> directives.</p>
  180. </section>
  181. </section>
  182. <!-- /installation -->
  183.  
  184. <section id="aboutconfig"><title>About Configuration</title>
  185. <ul>
  186. <li><a href="#parallel">HTTP and HTTPS with a single server?</a></li>
  187. <li><a href="#ports">Where is the HTTPS port?</a></li>
  188. <li><a href="#httpstest">How to test HTTPS manually?</a></li>
  189. <li><a href="#hang">Why does my connection hang?</a></li>
  190. <li><a href="#refused">Why do I get connection refused?</a></li>
  191. <li><a href="#envvars">Why are the <code>SSL_XXX</code> variables missing?</a></li>
  192. <li><a href="#relative">How to switch with relative hyperlinks?</a></li>
  193. </ul>
  194.  
  195. <section id="parallel"><title>Is it possible to provide HTTP and HTTPS with a single server?</title>
  196. <p>Yes, HTTP and HTTPS use different server ports, so there is no direct
  197.     conflict between them. Either run two separate server instances (one binds
  198.     to port 80, the other to port 443) or even use Apache's elegant virtual
  199.     hosting facility where you can easily create two virtual servers which
  200.     Apache dispatches: one responding to port 80 and speaking HTTP and one
  201.     responding to port 443 speaking HTTPS.</p>
  202. </section>
  203.  
  204. <section id="ports"><title>I know that HTTP is on port 80, but where is HTTPS?</title>
  205. <p>You can run HTTPS on any port, but the standards specify port 443, which
  206.     is where any HTTPS compliant browser will look by default. You can force
  207.     your browser to look on a different port by specifying it in the URL like
  208.     this (for port 666): <code>https://secure.server.dom:666/</code></p>
  209. </section>
  210.  
  211. <section id="httpstest"><title>How can I speak HTTPS manually for testing purposes?</title>
  212.  <p>While you usually just use</p>
  213.     
  214.     <example>$ telnet localhost 80<br />
  215.     GET / HTTP/1.0</example>
  216.  
  217.     
  218.     <p>for simple testing the HTTP protocol of Apache, it's not so easy for
  219.     HTTPS because of the SSL protocol between TCP and HTTP. But with the
  220.     help of OpenSSL's <code>s_client</code> command you can do a similar
  221.     check even for HTTPS:</p>
  222.     
  223.     <example>$ openssl s_client -connect localhost:443 -state -debug<br />
  224.     GET / HTTP/1.0</example>
  225.     
  226.     <p>Before the actual HTTP response you receive detailed information about the
  227.     SSL handshake. For a more general command line client which directly
  228.     understands both the HTTP and HTTPS scheme, can perform GET and POST
  229.     methods, can use a proxy, supports byte ranges, etc. you should have a
  230.     look at nifty <a href="http://curl.haxx.se/">cURL</a>
  231.     tool. With it you can directly check if your Apache is running fine on
  232.     Port 80 and 443 as following:</p>
  233.     
  234.     <example>$ curl http://localhost/<br />
  235.     $ curl https://localhost/</example>
  236. </section>
  237.  
  238. <section id="hang"><title>Why does the connection hang when I connect to my SSL-aware Apache server?</title>
  239. <p>Because you connected with HTTP to the HTTPS port, i.e. you used an URL of
  240.     the form ``<code>http://</code>'' instead of ``<code>https://</code>''.
  241.     This also happens the other way round when you connect via HTTPS to a HTTP
  242.     port, i.e. when you try to use ``<code>https://</code>'' on a server that
  243.     doesn't support SSL (on this port). Make sure you are connecting to a
  244.     virtual server that supports SSL, which is probably the IP associated with
  245.     your hostname, not localhost (127.0.0.1).</p>
  246. </section>
  247.  
  248. <section id="refused"><title>Why do I get ``Connection Refused'' messages when trying to access my freshly
  249. installed Apache+mod_ssl server via HTTPS?</title>
  250. <p>There can be various reasons. Some of the common mistakes is that people
  251.     start Apache with just ``<code>apachectl start</code>'' (or
  252.     ``<code>httpd</code>'') instead of ``<code>apachectl startssl</code>'' (or
  253.     ``<code>httpd -DSSL</code>''. Or you're configuration is not correct. At
  254.     least make sure that your <directive module="mpm_common">Listen</directive>
  255.     directives match your <directive type="section" module="core">VirtualHost</directive>
  256.     directives. And if all fails, please do yourself a favor and start over with the
  257.     default configuration mod_ssl provides you.</p>
  258. </section>
  259.  
  260. <section id="envvars"><title>In my CGI programs and SSI scripts the various documented
  261. <code>SSL_XXX</code> variables do not exist. Why?</title>
  262. <p>Just make sure you have ``<code>SSLOptions +StdEnvVars</code>''
  263.     enabled for the context of your CGI/SSI requests.</p>
  264. </section>
  265.  
  266. <section id="relative">
  267. <title>How can I use relative hyperlinks to switch between HTTP and
  268. HTTPS?</title>
  269.     <p>Usually you have to use fully-qualified hyperlinks because
  270.     you have to change the URL scheme. But with the help of some URL
  271.     manipulations through mod_rewrite you can achieve the same effect while
  272.     you still can use relative URLs:</p>
  273.     <example>
  274.     RewriteEngine on<br />
  275.     RewriteRule   ^/(.*):SSL$   https://%{SERVER_NAME}/$1 [R,L]<br />
  276.     RewriteRule   ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1  [R,L]
  277.     </example>
  278.  
  279.     <p>This rewrite ruleset lets you use hyperlinks of the form
  280.     <code><a href="document.html:SSL"></code></p>
  281. </section>
  282. </section>
  283. <!-- configuration -->
  284.  
  285. <section id="aboutcerts"><title>About Certificates</title>
  286. <ul>
  287. <li><a href="#keyscerts">What are Keys, CSRs and Certs?</a></li>
  288. <li><a href="#startup">Difference on startup?</a></li>
  289. <li><a href="#realcert">How to create a real cert?</a></li>
  290. <li><a href="#ownca">How to create my own CA?</a></li>
  291. <li><a href="#passphrase">How to change a pass phrase?</a></li>
  292. <li><a href="#removepassphrase">How to remove a pass phrase?</a></li>
  293. <li><a href="#verify">How to verify a key/cert pair?</a></li>
  294. <li><a href="#badcert">Bad Certificate Error?</a></li>
  295. <li><a href="#keysize">Why does a 2048-bit key not work?</a></li>
  296. <li><a href="#hashsymlinks">Why is client auth broken?</a></li>
  297. <li><a href="#pemder">How to convert from PEM to DER?</a></li>
  298. <li><a href="#verisign">Verisign and the magic getca program?</a></li>
  299. <li><a href="#sgc">Global IDs or SGC?</a></li>
  300. <li><a href="#gid">Global IDs and Cert Chain?</a></li>
  301. </ul>
  302.  
  303. <section id="keyscerts"><title>What are RSA Private Keys, CSRs and Certificates?</title>
  304. <p>The RSA private key file is a digital file that you can use to decrypt
  305.     messages sent to you. It has a public component which you distribute (via
  306.     your Certificate file) which allows people to encrypt those messages to
  307.     you. A Certificate Signing Request (CSR) is a digital file which contains
  308.     your public key and your name. You send the CSR to a Certifying Authority
  309.     (CA) to be converted into a real Certificate. A Certificate contains your
  310.     RSA public key, your name, the name of the CA, and is digitally signed by
  311.     your CA. Browsers that know the CA can verify the signature on that
  312.     Certificate, thereby obtaining your RSA public key. That enables them to
  313.     send messages which only you can decrypt.
  314.     See the <a href="ssl_intro.html">Introduction</a> chapter for a general
  315.     description of the SSL protocol.</p>
  316. </section>
  317.  
  318. <section id="startup"><title>Seems like there is a difference on startup between the original Apache and an SSL-aware Apache?</title>
  319. <p>Yes, in general, starting Apache with a built-in mod_ssl is just like
  320.     starting an unencumbered Apache, except for the fact that when you have a
  321.     pass phrase on your SSL private key file. Then a startup dialog pops up
  322.     asking you to enter the pass phrase.</p>
  323.     
  324.     <p>To type in the pass phrase manually when starting the server can be
  325.     problematic, for instance when starting the server from the system boot
  326.     scripts. As an alternative to this situation you can follow the steps
  327.     below under ``How can I get rid of the pass-phrase dialog at Apache
  328.     startup time?''.</p>
  329. </section>
  330.  
  331. <section id="realcert"><title>Ok, I've got my server installed and want to create a real SSL
  332. server Certificate for it. How do I do it?</title>
  333. <p>Here is a step-by-step description:</p>
  334.     
  335.     <ol>
  336.     <li>Make sure OpenSSL is really installed and in your <code>PATH</code>.
  337.         But some commands even work ok when you just run the
  338.         ``<code>openssl</code>'' program from within the OpenSSL source tree as
  339.         ``<code>./apps/openssl</code>''.<br />
  340.  
  341.         <br />
  342.     </li>
  343.     <li>Create a RSA private key for your Apache server
  344.        (will be Triple-DES encrypted and PEM formatted):<br />
  345.        <br />
  346.        <code><strong>$ openssl genrsa -des3 -out server.key 1024</strong></code><br />
  347.        <br />
  348.        Please backup this <code>server.key</code> file and remember the
  349.        pass-phrase you had to enter at a secure location.
  350.        You can see the details of this RSA private key via the command:<br />
  351.  
  352.        <br />
  353.        <code><strong>$ openssl rsa -noout -text -in server.key</strong></code><br />
  354.        <br />
  355.        And you could create a decrypted PEM version (not recommended)
  356.        of this RSA private key via:<br />
  357.        <br />
  358.        <code><strong>$ openssl rsa -in server.key -out server.key.unsecure</strong></code><br />
  359.        <br />
  360.  
  361.     </li>
  362.     <li>Create a Certificate Signing Request (CSR) with the server RSA private
  363.        key (output will be PEM formatted):<br />
  364.        <br />
  365.        <code><strong>$ openssl req -new -key server.key -out server.csr</strong></code><br />
  366.        <br />
  367.        Make sure you enter the FQDN ("Fully Qualified Domain Name") of the
  368.        server when OpenSSL prompts you for the "CommonName", i.e. when you
  369.        generate a CSR for a website which will be later accessed via
  370.        <code>https://www.foo.dom/</code>, enter "www.foo.dom" here.
  371.        You can see the details of this CSR via the command<br />
  372.  
  373.        <br />
  374.        <code><strong>$ openssl req -noout -text -in server.csr</strong></code><br />
  375.        <br />
  376.     </li>
  377.     <li>You now have to send this Certificate Signing Request (CSR) to
  378.        a Certifying Authority (CA) for signing. The result is then a real
  379.        Certificate which can be used for Apache. Here you have two options:
  380.        First you can let the CSR sign by a commercial CA like Verisign or
  381.        Thawte. Then you usually have to post the CSR into a web form, pay for
  382.        the signing and await the signed Certificate you then can store into a
  383.        server.crt file. For more information about commercial CAs have a look
  384.        at the following locations:<br />
  385.        <br />
  386.        <ol>
  387.        <li>  Verisign<br />
  388.  
  389.              <a href="http://digitalid.verisign.com/server/apacheNotice.htm">
  390.              http://digitalid.verisign.com/server/apacheNotice.htm
  391.              </a>
  392.        </li>
  393.        <li>  Thawte Consulting<br />
  394.              <a href="http://www.thawte.com/certs/server/request.html">
  395.              http://www.thawte.com/certs/server/request.html
  396.              </a>
  397.        </li>
  398.  
  399.        <li>  CertiSign Certificadora Digital Ltda.<br />
  400.              <a href="http://www.certisign.com.br">
  401.              http://www.certisign.com.br
  402.              </a>
  403.        </li>
  404.        <li>  IKS GmbH<br />
  405.              <a href="http://www.iks-jena.de/produkte/ca/">
  406.  
  407.              http://www.iks-jena.de/produkte/ca/
  408.              </a>
  409.        </li>
  410.        <li>  Uptime Commerce Ltd.<br />
  411.              <a href="http://www.uptimecommerce.com">
  412.              http://www.uptimecommerce.com
  413.              </a>
  414.        </li>
  415.        <li>  BelSign NV/SA<br />
  416.  
  417.              <a href="http://www.belsign.be">
  418.              http://www.belsign.be
  419.              </a>
  420.        </li>
  421.        </ol>
  422.  
  423.        Second you can use your own CA and now have to sign the CSR yourself by
  424.        this CA. Read the next answer in this FAQ on how to sign a CSR with
  425.        your CA yourself.
  426.        You can see the details of the received Certificate via the command:<br />
  427.        <br />
  428.        <code><strong>$ openssl x509 -noout -text -in server.crt</strong></code><br />
  429.  
  430.     </li>
  431.     <li>Now you have two files: <code>server.key</code> and
  432.     <code>server.crt</code>. These now can be used as following inside your
  433.     Apache's <code>httpd.conf</code> file:
  434.        <pre>
  435.        SSLCertificateFile    /path/to/this/server.crt
  436.        SSLCertificateKeyFile /path/to/this/server.key
  437.        </pre>
  438.        The <code>server.csr</code> file is no longer needed.
  439.     </li>
  440.  
  441.     </ol>
  442. </section>
  443.  
  444. <section id="ownca"><title>How can I create and use my own Certificate Authority (CA)?</title>
  445.     <p>The short answer is to use the <code>CA.sh</code> or <code>CA.pl</code>
  446.  
  447.     script provided by OpenSSL. The long and manual answer is this:</p>
  448.     
  449.     <ol>
  450.     <li>Create a RSA private key for your CA
  451.        (will be Triple-DES encrypted and PEM formatted):<br />
  452.        <br />
  453.        <code><strong>$ openssl genrsa -des3 -out ca.key 1024</strong></code><br />
  454.        <br />
  455.        Please backup this <code>ca.key</code> file and remember the
  456.        pass-phrase you currently entered at a secure location.
  457.        You can see the details of this RSA private key via the command<br />
  458.  
  459.        <br />
  460.        <code><strong>$ openssl rsa -noout -text -in ca.key</strong></code><br />
  461.        <br />
  462.        And you can create a decrypted PEM version (not recommended) of this
  463.        private key via:<br />
  464.        <br />
  465.        <code><strong>$ openssl rsa -in ca.key -out ca.key.unsecure</strong></code><br />
  466.        <br />
  467.  
  468.     </li>
  469.     <li>Create a self-signed CA Certificate (X509 structure)
  470.        with the RSA key of the CA (output will be PEM formatted):<br />
  471.        <br />
  472.        <code><strong>$ openssl req -new -x509 -days 365 -key ca.key -out ca.crt</strong></code><br />
  473.        <br />
  474.        You can see the details of this Certificate via the command:<br />
  475.        <br />
  476.  
  477.        <code><strong>$ openssl x509 -noout -text -in ca.crt</strong></code><br />
  478.        <br />
  479.     </li>
  480.     <li>Prepare a script for signing which is needed because
  481.        the ``<code>openssl ca</code>'' command has some strange requirements
  482.        and the default OpenSSL config doesn't allow one easily to use
  483.        ``<code>openssl ca</code>'' directly. So a script named
  484.        <code>sign.sh</code> is distributed with the mod_ssl distribution
  485.        (subdir <code>pkg.contrib/</code>). Use this script for signing.
  486.     </li>
  487.  
  488.     <li>Now you can use this CA to sign server CSR's in order to create real
  489.        SSL Certificates for use inside an Apache webserver (assuming
  490.        you already have a <code>server.csr</code> at hand):<br />
  491.        <br />
  492.        <code><strong>$ ./sign.sh server.csr</strong></code><br />
  493.        <br />
  494.        This signs the server CSR and results in a <code>server.crt</code> file.<br />
  495.  
  496.     </li>
  497.     </ol>
  498.  
  499. </section>
  500.  
  501. <section id="passphrase"><title>How can I change the pass-phrase on my private key file?</title>
  502. <p>You simply have to read it with the old pass-phrase and write it again
  503.     by specifying the new pass-phrase. You can accomplish this with the following
  504.     commands:</p>
  505.  
  506.     
  507.     <p><code><strong>$ openssl rsa -des3 -in server.key -out server.key.new</strong></code><br />
  508.     <code><strong>$ mv server.key.new server.key</strong></code><br /></p>
  509.     
  510.     <p>Here you're asked two times for a PEM pass-phrase. At the first
  511.     prompt enter the old pass-phrase and at the second prompt
  512.     enter the new pass-phrase.</p>
  513. </section>
  514.  
  515. <section id="removepassphrase"><title>How can I get rid of the pass-phrase dialog at Apache startup time?</title>
  516. <p>The reason why this dialog pops up at startup and every re-start
  517.     is that the RSA private key inside your server.key file is stored in
  518.     encrypted format for security reasons. The pass-phrase is needed to be
  519.     able to read and parse this file. When you can be sure that your server is
  520.     secure enough you perform two steps:</p>
  521.     
  522.     <ol>
  523.     <li>Remove the encryption from the RSA private key (while
  524.        preserving the original file):<br />
  525.        <br />
  526.        <code><strong>$ cp server.key server.key.org</strong></code><br />
  527.        <code><strong>$ openssl rsa -in server.key.org -out server.key</strong></code><br />
  528.  
  529.        <br />
  530.     </li>
  531.     <li>Make sure the server.key file is now only readable by root:<br />
  532.        <br />
  533.        <code><strong>$ chmod 400 server.key</strong></code><br />
  534.        <br />
  535.     </li>
  536.     </ol>
  537.  
  538.     <p>Now <code>server.key</code> will contain an unencrypted copy of the key.
  539.     If you point your server at this file it will not prompt you for a
  540.     pass-phrase. HOWEVER, if anyone gets this key they will be able to
  541.     impersonate you on the net. PLEASE make sure that the permissions on that
  542.     file are really such that only root or the web server user can read it
  543.     (preferably get your web server to start as root but run as another
  544.     server, and have the key readable only by root).</p>
  545.     
  546.     <p>As an alternative approach you can use the ``<code>SSLPassPhraseDialog
  547.     exec:/path/to/program</code>'' facility. But keep in mind that this is
  548.     neither more nor less secure, of course.</p>
  549. </section>
  550.  
  551. <section id="verify"><title>How do I verify that a private key matches its Certificate?</title>
  552. <p>The private key contains a series of numbers. Two of those numbers form
  553.     the "public key", the others are part of your "private key". The "public
  554.     key" bits are also embedded in your Certificate (we get them from your
  555.     CSR). To check that the public key in your cert matches the public
  556.     portion of your private key, you need to view the cert and the key and
  557.     compare the numbers. To view the Certificate and the key run the
  558.     commands:</p>
  559.     
  560.     <p><code><strong>$ openssl x509 -noout -text -in server.crt</strong></code><br />
  561.     <code><strong>$ openssl rsa -noout -text -in server.key</strong></code></p>
  562.     
  563.     <p>The `modulus' and the `public exponent' portions in the key and the
  564.     Certificate must match. But since the public exponent is usually 65537
  565.     and it's bothering comparing long modulus you can use the following
  566.     approach:</p>
  567.  
  568.     
  569.     <p><code><strong>$ openssl x509 -noout -modulus -in server.crt | openssl md5</strong></code><br />
  570.     <code><strong>$ openssl rsa -noout -modulus -in server.key | openssl md5</strong></code></p>
  571.     
  572.     <p>And then compare these really shorter numbers. With overwhelming
  573.     probability they will differ if the keys are different. BTW, if I want to
  574.     check to which key or certificate a particular CSR belongs you can compute</p>
  575.     
  576.     <p><code><strong>$ openssl req -noout -modulus -in server.csr | openssl md5</strong></code></p>
  577. </section>
  578.  
  579. <section id="badcert"><title>What does it mean when my connections fail with an "alert bad certificate"
  580. error?</title>
  581. <p>Usually when you see errors like <code>OpenSSL: error:14094412: SSL
  582.     routines:SSL3_READ_BYTES:sslv3 alert bad certificate</code> in the SSL
  583.     logfile, this means that the browser was unable to handle the server
  584.     certificate/private-key which perhaps contain a RSA-key not equal to 1024
  585.     bits. For instance Netscape Navigator 3.x is one of those browsers.</p>
  586. </section>
  587.  
  588. <section id="keysize"><title>Why does my 2048-bit private key not work?</title>
  589. <p>The private key sizes for SSL must be either 512 or 1024 for compatibility
  590.     with certain web browsers. A keysize of 1024 bits is recommended because
  591.     keys larger than 1024 bits are incompatible with some versions of Netscape
  592.     Navigator and Microsoft Internet Explorer, and with other browsers that
  593.     use RSA's BSAFE cryptography toolkit.</p>
  594. </section>
  595.  
  596. <section id="hashsymlinks"><title>Why is client authentication broken after upgrading from
  597. SSLeay version 0.8 to 0.9?</title>
  598. <p>The CA certificates under the path you configured with
  599.     <code>SSLCACertificatePath</code> are found by SSLeay through hash
  600.     symlinks. These hash values are generated by the `<code>openssl x509 -noout
  601.     -hash</code>' command. But the algorithm used to calculate the hash for a
  602.     certificate has changed between SSLeay 0.8 and 0.9. So you have to remove
  603.     all old hash symlinks and re-create new ones after upgrading. Use the
  604.     <code>Makefile</code> mod_ssl placed into this directory.</p>
  605. </section>
  606.  
  607. <section id="pemder"><title>How can I convert a certificate from PEM to DER format?</title>
  608. <p>The default certificate format for SSLeay/OpenSSL is PEM, which actually
  609.     is Base64 encoded DER with header and footer lines. For some applications
  610.     (e.g. Microsoft Internet Explorer) you need the certificate in plain DER
  611.     format. You can convert a PEM file <code>cert.pem</code> into the
  612.     corresponding DER file <code>cert.der</code> with the following command:
  613.     <code><strong>$ openssl x509 -in cert.pem -out cert.der -outform DER</strong></code></p>
  614. </section>
  615.  
  616. <section id="verisign"><title>I try to install a Verisign certificate. Why can't I find neither the
  617. <code>getca</code> nor <code>getverisign</code> programs Verisign mentions?</title>
  618. <p>This is because Verisign has never provided specific instructions
  619.     for Apache+mod_ssl. Rather they tell you what you should do
  620.     if you were using C2Net's Stronghold (a commercial Apache
  621.     based server with SSL support). The only thing you have to do
  622.     is to save the certificate into a file and give the name of
  623.     that file to the <code>SSLCertificateFile</code> directive.
  624.     Remember that you need to give the key file in as well (see
  625.     <code>SSLCertificateKeyFile</code> directive). For a better
  626.     CA-related overview on SSL certificate fiddling you can look at <a
  627.     href="http://www.thawte.com/html/SUPPORT/server/softwaredocs/modssl.html">Thawte's mod_ssl instructions</a>.</p>
  628. </section>
  629.  
  630. <section id="sgc"><title>Can I use the Server Gated Cryptography (SGC) facility (aka Verisign Global
  631. ID) also with mod_ssl?</title>
  632. <p>Yes, mod_ssl since version 2.1 supports the SGC facility. You don't have
  633.     to configure anything special for this, just use a Global ID as your
  634.     server certificate. The <em>step up</em> of the clients are then
  635.     automatically handled by mod_ssl under run-time. For details please read
  636.     the <code>README.GlobalID</code> document in the mod_ssl distribution.</p>
  637. </section>
  638.  
  639. <section id="gid"><title>After I have installed my new Verisign Global ID server certificate, the
  640. browsers complain that they cannot verify the server certificate?</title>
  641. <p>That is because Verisign uses an intermediate CA certificate between
  642.     the root CA certificate (which is installed in the browsers) and
  643.     the server certificate (which you installed in the server). You
  644.     should have received this additional CA certificate from Verisign.
  645.     If not, complain to them. Then configure this certificate with the
  646.     <code>SSLCertificateChainFile</code> directive in the server. This
  647.     makes sure the intermediate CA certificate is send to the browser
  648.     and this way fills the gap in the certificate chain.</p>
  649. </section>
  650. </section>
  651. <!-- /certs -->
  652.  
  653. <section id="aboutssl"><title>About SSL Protocol</title>
  654. <ul>
  655. <li><a href="#random">Random SSL errors under heavy load?</a></li>
  656. <li><a href="#load">Why has the server a higher load?</a></li>
  657. <li><a href="#establishing">Why are connections horribly slow?</a></li>
  658. <li><a href="#ciphers">Which ciphers are supported?</a></li>
  659. <li><a href="#adh">How to use Anonymous-DH ciphers</a></li>
  660. <li><a href="#sharedciphers">Why do I get 'no shared ciphers'?</a></li>
  661. <li><a href="#vhosts">HTTPS and name-based vhosts</a></li>
  662. <li><a href="#vhosts2">Why is it not possible to use Name-Based Virtual
  663. Hosting to identify different SSL virtual hosts?</a></li>
  664. <li><a href="#lockicon">The lock icon in Netscape locks very late</a></li>
  665. <li><a href="#msie">Why do I get I/O errors with MSIE clients?</a></li>
  666. <li><a href="#nn">Why do I get I/O errors with NS clients?</a></li>
  667. </ul>
  668.  
  669. <section id="random"><title>Why do I get lots of random SSL protocol errors under heavy server load?</title>
  670. <p>There can be a number of reasons for this, but the main one
  671.     is problems with the SSL session Cache specified by the
  672.     <directive module="mod_ssl">SSLSessionCache</directive> directive. The DBM session
  673.     cache is most likely the source of the problem, so trying the SHM session cache or
  674.     no cache at all may help.</p>
  675. </section>
  676.  
  677. <section id="load"><title>Why has my webserver a higher load now that I run SSL there?</title>
  678. <p>Because SSL uses strong cryptographic encryption and this needs a lot of
  679.     number crunching. And because when you request a webpage via HTTPS even
  680.     the images are transferred encrypted. So, when you have a lot of HTTPS
  681.     traffic the load increases.</p>
  682. </section>
  683.  
  684. <section id="establishing"><title>Often HTTPS connections to my server require up to 30 seconds for establishing
  685. the connection, although sometimes it works faster?</title>
  686. <p>Usually this is caused by using a <code>/dev/random</code> device for
  687.     <code>SSLRandomSeed</code> which is blocking in read(2) calls if not
  688.     enough entropy is available. Read more about this problem in the reference
  689.     chapter under <code>SSLRandomSeed</code>.</p>
  690. </section>
  691.  
  692. <section id="ciphers"><title>What SSL Ciphers are supported by mod_ssl?</title>
  693. <p>Usually just all SSL ciphers which are supported by the
  694.     version of OpenSSL in use (can depend on the way you built
  695.     OpenSSL). Typically this at least includes the following:</p>
  696.     
  697.     <ol>
  698.     <li>RC4 with MD5</li>
  699.  
  700.     <li>RC4 with MD5 (export version restricted to 40-bit key)</li>
  701.     <li>RC2 with MD5</li>
  702.     <li>RC2 with MD5 (export version restricted to 40-bit key)</li>
  703.     <li>IDEA with MD5</li>
  704.     <li>DES with MD5</li>
  705.     <li>Triple-DES with MD5</li>
  706.  
  707.     </ol>
  708.     
  709.     <p>To determine the actual list of supported ciphers you can
  710.     run the following command:</p>
  711.     <example>$ openssl ciphers -v</example>
  712. </section>
  713.  
  714. <section id="adh"><title>I want to use Anonymous Diffie-Hellman (ADH) ciphers, but I always get ``no
  715. shared cipher'' errors?</title>
  716. <p>In order to use Anonymous Diffie-Hellman (ADH) ciphers, it is not enough
  717.     to just put ``<code>ADH</code>'' into your <code>SSLCipherSuite</code>.
  718.     Additionally you have to build OpenSSL with
  719.     ``<code>-DSSL_ALLOW_ADH</code>''. Because per default OpenSSL does not
  720.     allow ADH ciphers for security reasons. So if you are actually enabling
  721.     these ciphers make sure you are informed about the side-effects.</p>
  722. </section>
  723.  
  724. <section id="sharedciphers"><title>I always just get a 'no shared ciphers' error if
  725. I try to connect to my freshly installed server?</title>
  726. <p>Either you have messed up your <code>SSLCipherSuite</code>
  727.     directive (compare it with the pre-configured example in
  728.     <code>httpd.conf-dist</code>) or you have chosen the DSA/DH
  729.     algorithms instead of RSA when you generated your private key
  730.     and ignored or overlooked the warnings.  If you have chosen
  731.     DSA/DH, then your server no longer speaks RSA-based SSL ciphers
  732.     (at least not until you also configure an additional RSA-based
  733.     certificate/key pair). But current browsers like NS or IE only speak
  734.     RSA ciphers. The result is the "no shared ciphers" error. To fix
  735.     this, regenerate your server certificate/key pair and this time
  736.     choose the RSA algorithm.</p>
  737. </section>
  738.  
  739. <section id="vhosts"><title>Why can't I use SSL with name-based/non-IP-based virtual hosts?</title>
  740. <p>The reason is very technical. Actually it's some sort of a chicken and
  741.     egg problem: The SSL protocol layer stays below the HTTP protocol layer
  742.     and encapsulates HTTP. When an SSL connection (HTTPS) is established
  743.     Apache/mod_ssl has to negotiate the SSL protocol parameters with the
  744.     client. For this mod_ssl has to consult the configuration of the virtual
  745.     server (for instance it has to look for the cipher suite, the server
  746.     certificate, etc.). But in order to dispatch to the correct virtual server
  747.     Apache has to know the <code>Host</code> HTTP header field. For this the
  748.     HTTP request header has to be read. This cannot be done before the SSL
  749.     handshake is finished. But the information is already needed at the SSL
  750.     handshake phase. Bingo!</p>
  751. </section>
  752.  
  753. <section id="vhosts2"><title>Why is it not possible to use Name-Based
  754. Virtual Hosting to identify different SSL virtual hosts?</title>
  755.     <p>Name-Based Virtual Hosting is a very popular method of identifying
  756.     different virtual hosts. It allows you to use the same IP address and
  757.     the same port number for many different sites. When people move on to
  758.     SSL, it seems natural to assume that the same method can be used to have
  759.     lots of different SSL virtual hosts on the same server.</p>
  760.  
  761.     <p>It comes as rather a shock to learn that it is impossible.</p> 
  762.  
  763.     <p>The reason is that the SSL protocol is a separate layer which
  764.     encapsulates the HTTP protocol. So the problem is that the SSL session
  765.     is a separate transaction that takes place before the HTTP session even
  766.     starts. Therefore all the server receives is an SSL request on IP
  767.     address X and port Y (usually 443). Since the SSL request does not
  768.     contain any Host: field, the server has no way to decide which SSL
  769.     virtual host to use. Usually, it will just use the first one it finds
  770.     that matches the port and IP address.</p> 
  771.  
  772.     <p>You can, of course, use Name-Based Virtual Hosting to identify many
  773.     non-SSL virtual hosts (all on port 80, for example) and then you can
  774.     have no more than 1 SSL virtual host (on port 443). But if you do this,
  775.     you must make sure to put the non-SSL port number on the NameVirtualHost
  776.     directive, e.g.</p> 
  777.  
  778.     <example>
  779.       NameVirtualHost 192.168.1.1:80
  780.     </example>
  781.     
  782.     <p>Other workaround solutions are: </p>
  783.  
  784.     <p>Use separate IP addresses for different SSL hosts. 
  785.     Use different port numbers for different SSL hosts.</p> 
  786. </section>
  787.  
  788. <section id="lockicon"><title>When I use Basic Authentication over HTTPS the lock icon in Netscape browsers
  789. still shows the unlocked state when the dialog pops up. Does this mean the
  790. username/password is still transmitted unencrypted?</title>
  791. <p>No, the username/password is already transmitted encrypted. The icon in
  792.     Netscape browsers is just not really synchronized with the SSL/TLS layer
  793.     (it toggles to the locked state when the first part of the actual webpage
  794.     data is transferred which is not quite correct) and this way confuses
  795.     people. The Basic Authentication facility is part of the HTTP layer and
  796.     this layer is above the SSL/TLS layer in HTTPS. And before any HTTP data
  797.     communication takes place in HTTPS the SSL/TLS layer has already done the
  798.     handshake phase and switched to encrypted communication. So, don't get
  799.     confused by this icon.</p>
  800. </section>
  801.  
  802. <section id="msie"><title>When I connect via HTTPS to an Apache+mod_ssl+OpenSSL server with Microsoft Internet
  803. Explorer (MSIE) I get various I/O errors. What is the reason?</title>
  804. <p>The first reason is that the SSL implementation in some MSIE versions has
  805.     some subtle bugs related to the HTTP keep-alive facility and the SSL close
  806.     notify alerts on socket connection close. Additionally the interaction
  807.     between SSL and HTTP/1.1 features are problematic with some MSIE versions,
  808.     too. You've to work-around these problems by forcing
  809.     Apache+mod_ssl+OpenSSL to not use HTTP/1.1, keep-alive connections or
  810.     sending the SSL close notify messages to MSIE clients. This can be done by
  811.     using the following directive in your SSL-aware virtual host section:</p>
  812.     <example>
  813.     SetEnvIf User-Agent ".*MSIE.*" \<br />
  814.              nokeepalive ssl-unclean-shutdown \<br />
  815.              downgrade-1.0 force-response-1.0
  816.     </example>
  817.     <p>Additionally it is known some MSIE versions have also problems
  818.     with particular ciphers. Unfortunately one cannot workaround these
  819.     bugs only for those MSIE particular clients, because the ciphers
  820.     are already used in the SSL handshake phase. So a MSIE-specific
  821.     <directive module="mod_setenvif">SetEnvIf</directive> doesn't work
  822.     to solve these problems. Instead one has to do more drastic
  823.     adjustments to the global parameters. But before you decide to do
  824.     this, make sure your clients really have problems. If not, do not
  825.     do this, because it affects all(!) your clients, i.e., also your
  826.     non-MSIE clients.</p>
  827.  
  828.     <p>The next problem is that 56bit export versions of MSIE 5.x browsers have a
  829.     broken SSLv3 implementation which badly interacts with OpenSSL versions
  830.     greater than 0.9.4. You can either accept this and force your clients to
  831.     upgrade their browsers, or you downgrade to OpenSSL 0.9.4 (hmmm), or you
  832.     can decide to workaround it by accepting the drawback that your workaround
  833.     will horribly affect also other browsers:</p>
  834.     <example>SSLProtocol all -SSLv3</example>
  835.     <p>This completely disables the SSLv3 protocol and lets those browsers work.
  836.     But usually this is an even less acceptable workaround. A more reasonable
  837.     workaround is to address the problem more closely and disable only the
  838.     ciphers which cause trouble.</p>
  839.     <example><p><code>SSLCipherSuite
  840.     ALL:!ADH:<strong>!EXPORT56</strong>:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP</code>
  841.     </p></example>
  842.  
  843.     <p>This also lets the broken MSIE versions work, but only removes the
  844.     newer 56bit TLS ciphers.</p>
  845.     
  846.     <p>Another problem with MSIE 5.x clients is that they refuse to connect to
  847.     URLs of the form <code>https://12.34.56.78/</code> (IP-addresses are used
  848.     instead of the hostname), if the server is using the Server Gated
  849.     Cryptography (SGC) facility. This can only be avoided by using the fully
  850.     qualified domain name (FQDN) of the website in hyperlinks instead, because
  851.     MSIE 5.x has an error in the way it handles the SGC negotiation.</p>
  852.     
  853.     <p>And finally there are versions of MSIE which seem to require that
  854.     an SSL session can be reused (a totally non standard-conforming
  855.     behaviour, of course). Connection with those MSIE versions only work
  856.     if a SSL session cache is used. So, as a work-around, make sure you
  857.     are using a session cache (see <directive module="mod_ssl"
  858.     >SSLSessionCache</directive> directive).</p>
  859. </section>
  860.  
  861. <section id="nn"><title>When I connect via HTTPS to an Apache+mod_ssl server with Netscape Navigator I
  862. get I/O errors and the message "Netscape has encountered bad data from the
  863. server" What's the reason?</title>
  864. <p>
  865.     The problem usually is that you had created a new server certificate with
  866.     the same DN, but you had told your browser to accept forever the old
  867.     server certificate. Once you clear the entry in your browser for the old
  868.     certificate, everything usually will work fine. Netscape's SSL
  869.     implementation is correct, so when you encounter I/O errors with Netscape
  870.     Navigator it is most of the time caused by the configured certificates.</p>
  871. </section>
  872. </section>
  873. <!-- /aboutssl -->
  874.  
  875. <section id="support"><title>About Support</title>
  876. <ul>
  877. <li><a href="#resources">Resources in case of problems?</a></li>
  878. <li><a href="#contact">Support in case of problems?</a></li>
  879. <li><a href="#reportdetails">How to write a problem report?</a></li>
  880. <li><a href="#coredumphelp">I got a core dump, can you help me?</a></li>
  881. <li><a href="#backtrace">How to get a backtrace?</a></li>
  882. </ul>
  883.  
  884. <section id="resources"><title>What information resources are available in case of mod_ssl problems?</title>
  885. <p>The following information resources are available.
  886.     In case of problems you should search here first.</p>
  887.  
  888.     <dl>
  889.     <dt>Answers in the User Manual's F.A.Q. List (this)</dt>
  890.     <dd><a href="http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html">
  891.         http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html</a><br />
  892.         First look inside the F.A.Q. (this text), perhaps your problem is such
  893.         popular that it was already answered a lot of times in the past.
  894.     </dd>
  895.     <dt>Postings from the modssl-users Support Mailing List <a 
  896.         href="http://www.modssl.org/support/"
  897.         >http://www.modssl.org/support/</a></dt>
  898.     <dd>Second search for your problem in one of the existing archives of the
  899.         modssl-users mailing list. Perhaps your problem popped up at least once for
  900.         another user, too.
  901.     </dd>
  902.     </dl>
  903. </section>
  904.  
  905. <section id="contact"><title>What support contacts are available in case of mod_ssl problems?</title>
  906.  <p>The following lists all support possibilities for mod_ssl, in order of
  907.     preference, i.e. start in this order and do not pick the support possibility
  908.     you just like most, please.</p>
  909.  
  910.     <ol>
  911.     <li><em>Write a Problem Report into the Bug Database</em><br />
  912.         <a href="http://www.modssl.org/support/bugdb/">
  913.         http://www.modssl.org/support/bugdb/</a><br />
  914.         This is the preferred way of submitting your problem report, because this
  915.         way it gets filed into the bug database (it cannot be lost) <em>and</em>
  916.         send to the modssl-users mailing list (others see the current problems and
  917.         learn from answers).
  918.     </li>
  919.  
  920.     <li><em>Write a Problem Report to the modssl-users Support Mailing List</em><br />
  921.         <a href="mailto:modssl-users@modssl.org">
  922.         modssl-users@modssl.org</a><br />
  923.         This is the second way of submitting your problem report. You have to
  924.         subscribe to the list first, but then you can easily discuss your problem
  925.         with both the author and the whole mod_ssl user community.
  926.     </li>
  927.     </ol>
  928. </section>
  929.  
  930. <section id="reportdetails"><title>What information and details should I
  931.     provide when writing a bug report?</title>
  932. <p>You have to at least always provide the following information:</p>
  933.  
  934.     <dl>
  935.     <dt>Apache and OpenSSL version information</dt>
  936.     <dd>The Apache version can be determined
  937.         by running ``<code>httpd -v</code>''. The OpenSSL version can be
  938.         determined by running ``<code>openssl version</code>''. Alternatively when
  939.         you have Lynx installed you can run the command ``<code>lynx -mime_header
  940.         http://localhost/ | grep Server</code>'' to determine all information in a
  941.         single step.
  942.     </dd>
  943.  
  944.     <dt>The details on how you built and installed Apache+mod_ssl+OpenSSL</dt>
  945.     <dd>For this you can provide a logfile of your terminal session which shows
  946.         the configuration and install steps. Alternatively you can at least
  947.         provide the <code>configure</code> command line you used.
  948.     </dd>
  949.  
  950.     <dt>In case of core dumps please include a Backtrace</dt>
  951.     <dd>In case your Apache+mod_ssl+OpenSSL should really dump core please attach
  952.         a stack-frame ``backtrace'' (see the next question on how to get it).
  953.         Without this information the reason for your core dump cannot be found.
  954.         So you have to provide the backtrace, please.
  955.     </dd>
  956.     
  957.     <dt>A detailed description of your problem</dt>
  958.     <dd>Don't laugh, I'm totally serious. I already got a lot of problem reports
  959.         where the people not really said what's the actual problem is. So, in your
  960.         own interest (you want the problem be solved, don't you?) include as much
  961.         details as possible, please. But start with the essentials first, of
  962.         course.
  963.     </dd>
  964.     </dl>
  965. </section>
  966.  
  967. <section id="coredumphelp"><title>I got a core dump, can you help me?</title>
  968. <p>In general no, at least not unless you provide more details about the code
  969.     location where Apache dumped core. What is usually always required in
  970.     order to help you is a backtrace (see next question). Without this
  971.     information it is mostly impossible to find the problem and help you in
  972.     fixing it.</p>
  973. </section>
  974.  
  975. <section id="backtrace"><title>Ok, I got a core dump but how do I get a backtrace to find out the reason for it?</title>
  976. <p>Follow the following steps:</p>
  977.     <ol>
  978.     <li>Make sure you have debugging symbols available in at least
  979.         Apache. On platforms where you use GCC/GDB you have to build
  980.         Apache+mod_ssl with ``<code>OPTIM="-g -ggdb3"</code>'' to achieve this. On
  981.         other platforms at least ``<code>OPTIM="-g"</code>'' is needed.
  982.     </li>
  983.  
  984.     <li>Startup the server and try to produce the core-dump. For this you perhaps
  985.         want to use a directive like ``<code>CoreDumpDirectory /tmp</code>'' to
  986.         make sure that the core-dump file can be written. You then should get a
  987.         <code>/tmp/core</code> or <code>/tmp/httpd.core</code> file. When you
  988.         don't get this, try to run your server under an UID != 0 (root), because
  989.         most "current" kernels do not allow a process to dump core after it has
  990.         done a <code>setuid()</code> (unless it does an <code>exec()</code>) for
  991.         security reasons (there can be privileged information left over in
  992.         memory). Additionally you can run ``<code>/path/to/httpd -X</code>''
  993.         manually to force Apache to not fork.
  994.     </li>
  995.  
  996.     <li>Analyze the core-dump. For this run <code>gdb /path/to/httpd
  997.         /tmp/httpd.core</code> or a similar command has to run. In GDB you then
  998.         just have to enter the <code>bt</code> command and, voila, you get the
  999.         backtrace. For other debuggers consult your local debugger manual. Send
  1000.         this backtrace to the author.
  1001.     </li>
  1002.     </ol>
  1003. </section>
  1004. </section>
  1005. </manualpage>
  1006.