Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  1. Fotoware Alto
    • Release Notes
    • End-User Manual
    • Solutions
    • Terminology
    • User Guides
    • API Changelog
  2. Fotoware Veloz
    • Fotoware Veloz releases
    • Managing users and groups
    • Configuring archives
    • Configuring workflows
    • Configuring site behavior
    • Navigating and searching to find your assets
    • Working with your assets
    • Editing asset metadata
    • Uploading files
    • Version Control in Fotoware
    • Albums - Creating and sharing collections
    • Placing assets in a Content Management System (CMS)
    • Working with the Fotoware Pro interface
    • Using the Fotoware plugins
    • Consent management
    • User guide to FotoWeb for iPad (Legacy)
    • Picture conferencing with FotoWeb Screens (Legacy)
    • What's what in Fotoware
    • GDPR
    • Activity Exports
    • Example workflows
  3. Fotostation
    • Getting started with Fotostation
    • Viewing, selecting and sorting files
    • Managing your assets with archives
    • Adding metadata to assets in Fotostation
    • Searching for assets
    • Working with your assets
    • Version Control in Fotostation
    • Automating tasks with Actions
    • Configuring metadata fields and editors
    • Configuring Fotostation
    • Configuring Fotostation for multi-user environments
    • Troubleshooting Fotostation
  4. Fotoware Flow
    • About Flow
    • Getting started
    • Flow dictionary
  5. Fotoware On-premises
    • Fotoware On-premises releases
    • Getting started
    • Index Manager
    • FotoWeb
    • Color Factory
    • Connect
    • Operations Center Guide
  6. Integrations and APIs
    • Fotoware Alto API
    • Fotoware Veloz and On-premises API
  7. Fotoware Mobile
    • User guide for Fotoware Mobile for iPhone and Android
    • User guide to FotoWeb for iPad (Legacy)
    • User guide to FotoWeb for iPhone and Android (Legacy)

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

Support

Table of Contents

Note Note Prerequisites Configuration requirements Configuring MongoDB Creating a MongoDB user for FotoWeb Note Configuring FotoWeb to use TLS and Authentication Verification
  • Home
  • Fotoware On-premises
  • FotoWeb
  • Installing FotoWeb (On-premises)

Enable TLS and authorization for your MongoDB deployment

21. August 2026

Elaine Foley

Table of Contents

Note Note Prerequisites Configuration requirements Configuring MongoDB Creating a MongoDB user for FotoWeb Note Configuring FotoWeb to use TLS and Authentication Verification

This article describes how to configure MongoDB and FotoWeb to use TLS encryption and username/password authentication (SCRAM) for all connections. 

Note

The function is available, but it might not behave exactly as intended in all cases. We are aware of this and are making the necessary adjustments. A fix will be delivered in the next release (Feature Release 22) to ensure the function works as designed.

 

 

To enable TLS and authorization for your MongoDB deployment, you must be using: 

  • FotoWeb 9.x and later (Feature Release 20 and later), where MongoDB runs as an external service. 
  • Index Manager version 8.1.1072 and later

By default, MongoDB can accept connections without encryption or authentication. For production environments, we strongly recommend enabling both TLS and authentication to secure communication between FotoWeb and MongoDB.

Configuration is required on both the server and the client. The server defines the security requirements (authentication and TLS), while the client must match them in its connection settings.

Note

If MongoDB, FotoWeb, and Index Manager run on the same system, then TLS encryption may not be needed, and localhost can be used as the hostname in the connection string. 

In this case, we strongly recommend configuring MongoDB to listen for connections only on the loopback network (i.e., set the bindIp option to 127.0.0.1 or ::1, not to 0.0.0.0 or ::). For more information, see IP bindings in self-managed deployments ( official MongoDB documentation). 

 


Otherwise, we recommend running MongoDB on a server with a DNS name and a valid certificate. To use TLS, see the MongoDB documentation on how to configure the MongoDB server to use TLS with your certificate, and use the tls=true option in the connection string. For more information, see Connection string options. 

If you want to use an Enterprise CA or a self-signed certificate, see the MongoDB documentation. For example, you can use the tlsCAFile connection string option to specify the location of a local file that contains the root certificate chain from the Certificate Authority. 

 

Prerequisites

Before you begin, make sure that:

  • You have configured Index Manager to write data to MongoDB. You must be using Index Manager version 8.1.1072 or later.
  • If you are using Feature Release 19 or earlier, you need to migrate MongoDB,
  • You have administrative access to your MongoDB instance.
     

Configuration requirements

Server (MongoDB)
In the MongoDB configuration file used by the MongoDB service, you must configure:

  • Authentication to be required 
  • Authentication credentials and authorization (users and their permissions)
  • TLS to be required
  • A certificate key file (PEM file containing the private key and certificate)
  • A CA file, or configure MongoDB to use the system CA store

Client (FotoWeb and Index Manager)
In the MongoDB connection string, you must configure:

  • TLS usage
  • Credentials (username and password)


Configuring MongoDB

MongoDB must be configured to require authentication (SCRAM) and use TLS for all client connections.

These steps are performed on the MongoDB side. The exact configuration depends on how your MongoDB deployment is hosted.

We recommend following the MongoDB official documentation:

Use SCRAM to Authenticate Clients on Self-Managed Deployments 

Configure TLS/SSL for MongoDB 

 

Creating a MongoDB user for FotoWeb

Create a dedicated user account for FotoWeb to connect to MongoDB.

Example:

use admin db.createUser({  user: "fotoweb",  pwd: "<strong password>",  roles: [    { role: "readWriteAnyDatabase", db: "admin" }  ] })

 

Note

  • Use a strong, unique password.
  • Do not use the MongoDB admin user for FotoWeb in production.
  • Store credentials securely.
 

Once authentication and TLS are enabled, MongoDB will only accept encrypted and authenticated connections.

 

Configuring FotoWeb to use TLS and Authentication

All FotoWeb configuration must be done using the FotoWeb Settings application.
Do not edit configuration files manually.

  1. Open the FotoWeb Settings app.
  2. Go to Settings > Database to enter the MongoDB settings.
  3. Enter the following:
  • Hostname: Your MongoDB server address
  • Port: Typically 27017 (unless configured differently)
  • Username: The MongoDB user you created (for example fotoweb)
  • Password: The user’s password
  1. Enable the Use TLS (or equivalent) option.
  2. Save the configuration.
  3. Restart FotoWeb.

FotoWeb will automatically build a secure MongoDB connection using these values. 

 

Verification

After restarting FotoWeb, FotoWeb should start without MongoDB connection errors, and the MongoDB logs should show:

  • Authenticated connections
  • TLS-secured sessions

If FotoWeb cannot connect:

  • Verify the username and password
  • Confirm TLS is enabled on MongoDB
  • Check that the MongoDB certificate is trusted by the system running FotoWeb
authentication encryption tls

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Managing groups using SAML
  • Setting up SAML authentication
  • Setting archive access and permissions
  • Supported audio and video files for decoding
eco-lighthouse-miljøfyrtårn

Company

  • About us
  • Resellers
  • Careers
  • Contact us

Help & support

  • Support center
  • Consultancy
  • Tech partners
  • Fotostation
  • System status

Trust Center

  • Legal
  • Security
  • Sustainability & ESG

Locations

Fotoware AS (HQ)
Tollbugata 35
0157 OSLO
Norway
Fotoware Switzerland AG
Brown Boveri Str.7
5400 Baden
Switzerland

Copyright 2026 Fotoware All rights reserved.

  • Terms of service
  • Privacy policy
  • Cookie policy

Knowledge Base Software powered by Helpjuice

Expand