Openssl

From CauchoWiki

Jump to: navigation, search


<openssl> configures SSL for a <http> or <srun> port using the OpenSSL library. (Requires Resin Professional)

[edit] directives

directivedescriptiondefault
ca-certificate-fileCA file for SSL client authentication
ca-certificate-pathCA directory for SSL client authentication
certificate-fileThe server's certificaterequired
certificate-chain-fileFile containing the certificate chain for SSL client authentication
certificate-key-fileThe server's private key filerequired
cipher-suiteSpecifies cryptographic algorithms allowed
passwordSpecifies the private key passwordrequired
protocolSSL3 or TLSTLS
session-cacheIf true, enables the OpenSSL session cachetrue
session-cache-timeoutHow long sessions should be kept in the session cache
unclean-shutdownIf true, closing SSL sockets will be forced instead of a clean shutdownfalse
<verify-client>Sets the SSL client authentication options
verify-depthHow deep a verification chain to allow

[edit] cipher-suite

The <cipher-suite> tag restricts the ciphers allowed for SSL connections following the OpenSSL cipher suite syntax

 <http port='443'>
   <openssl>
     <certificate-file>...</certificate-file>
     <certificate-key-file>...</certificate-key-file>
     <password>...</password>
     <cipher-suite>ALL:!aNULL:!ADH</cipher-suite>
 </openssl>
 </http>

[edit] Windows Specific Information

The most recent releases of Resin 3.0.x on Windows (.19+ for sure) are compiled against the more recent branch of OpenSSL, 0.9.8. Older releases, through .14 at least, are compiled against the specific version, 0.9.7c from gnuwin32, that's mentioned in the docs.

To set up OpenSSL in the latest releases, get the current 0.9.8 binary distribution from here. Unfortunately, you can't just extract the DLL's, so you'll have to install it. The DLL's will go into your Windows system32 directory. There should be three DLL's:

  • ssleay32.dll
  • libeay32.dll
  • libssl32.dll

You can grab those once they're extracted by the installer and put them in your resin directory, or anywhere on the path (including leaving them where the installer put them). After that, your newer release of Resin should be able to start with OpenSSL.

Personal tools