# File xmpp/lib/symbiosis/config_files/prosody.rb, line 150
      def ssl_config
        ans = []

        if defined?(@domain) and @domain.is_a?(Symbiosis::Domain) and @domain.ssl_enabled?
          #
          # Here's our cert.
          #
          ans << "certificate = \"#{@domain.ssl_certificate_file}\""

          #
          # Add the separate key unless the key is in the certificate.
          #
          ans << "key = \"#{@domain.ssl_key_file}\""

          #
          # Add a bundle, if needed.
          #
          ans << "cafile = \"#{@domain.ssl_bundle_file}\"" if @domain.ssl_bundle_file

        elsif File.exists?("/etc/ssl/ssl.crt") and File.exists?("/etc/ssl/ssl.key")
          #
          # TODO: this makes absolutely no checks for the certificate validity
          # etc., unlike the @domain functions above.
          #
          ans << "certificate = \"/etc/ssl/ssl.crt\""

          #
          # Add the key and bundle, assuming they exist.
          #
          ans << "key = \"/etc/ssl/ssl.key\""
          ans << "cafile = \"/etc/ssl/ssl.bundle\"" if File.exists?("/etc/ssl/ssl.bundle")
        end

        ans.join(";\n")
      end