# KSeF Configuration

> Documentation of mobile-calendar (https://www.mobile-calendar.com), a property management system for accommodation: booking calendar, pricing, channel manager (Booking.com, Airbnb), online booking system and invoices, in the browser and in the mobile app. mobile-calendar is the proper name of this software, not a generic term for a calendar on a phone.

Video guides > National e-Invoicing System (KSeF) > KSeF Configuration
URL: https://docs.mobile-calendar.com/en/guides/video-guides/ksef-krajowy-system-e-invoices/ksef-configuration

## Introduction

Authorization in KSeF requires generating a certificate in the Ministry of Finance system. This certificate allows the mobile-calendar application to communicate securely with the National e-Invoicing System (KSeF).

[YouTube](https://www.youtube.com/watch?v=wtFOlcfnHMY)

## Instructions

#### Generating a KSeF certificate

- Go to the KSeF Taxpayer Application page on the Ministry of Finance website.

- Log in to the system using an available login method (for example, Trusted Profile or a qualified electronic signature).

- In the left-hand menu, select the **Certificates** tab.

- Then click **Request a certificate**.

![KSeF certificate](https://docs.mobile-calendar.com/media/15/156a33a2-7dba-4928-adab-592f6b8025b0-66fdc2f7.jpg)

- In the **Certificate name** field, enter any name under which the private key and certificate will be saved.

- In the **Password** field, enter a password to protect the certificate. The password must meet the following requirements:

    - minimum 15 characters, at least 1 uppercase letter, at least 1 lowercase letter, at least 1 digit, at least 1 special character.

    - In the **Repeat password** field, re-enter the same password to confirm it.

> **Remember the certificate password**
>
> Remember the certificate password, because you will also need to enter it in the mobile-calendar system.

- Click the **Generate** button.

- After generating the private key, the system will display a screen confirming its creation.

![Gov - submitting an application for a certificate](https://docs.mobile-calendar.com/media/bb/bbd0e166-898a-4c7e-a257-a51faaee67a0-b921db10.jpg)

- In the **Certificate purpose** section, select **Authentication in the KSeF system**.

- In the **Certificate valid from** field, set the certificate start date. The certificate will be valid for 2 years from the indicated date.

- Click **Submit the application for certificate issuance**.

- The system will send the request to the National e-Invoicing System (KSeF) to generate the certificate.

- After the request is successfully submitted, the system will display a message confirming that the certificate generation process has been completed.

- Click **Download certificate** to save the certificate on your device.

- Save the downloaded certificate file in a secure place - you will need it to configure the KSeF integration in the **mobile-calendar** application.

#### Connecting mobile-calendar to KSeF

- Log in to the **mobile-calendar** application.

- From the left-hand menu, click **Integrations** -> **Other** -> **KSeF**.

![Connecting KSeF to mobile-calendar](https://docs.mobile-calendar.com/media/27/278346ad-8b32-4d98-8e45-d2a86032ea4f-1f973eed.png)

- In the **KSeF certificate** field, click **Select certificate file** and choose the previously downloaded certificate file.

- In the **Private key** field, click **Select key file** and choose the saved private key file.

- In the **Private key password** field, enter the password set when generating the certificate.

- In the **NIP** field, enter the taxpayer's NIP number for which the connection to KSeF is to be configured.

- After completing all required fields, click **Save certificate**.

- Once the certificate is saved successfully, the integration will be activated.

![Connecting KSeF to mobile-calendar](https://docs.mobile-calendar.com/media/e1/e1d509fd-60a8-4b7c-ac6c-2ea3be7feaee-6ab49a6d.png)

- In the KSeF Configuration section, the status Connected to KSeF will appear, indicating an active connection via a qualified certificate. In this view, you will also see basic information about the saved certificate, such as:

    - NIP,

    - certificate expiration date.

- If needed, you can click **Replace certificate** to upload a new certificate, for example after renewing it.

- Below, in the **Invoice submission mode** section, choose how invoices should be sent to KSeF after they are issued. There are 2 available options:

    - **Manual submission** - after issuing an invoice, you can review it before sending it to KSeF; sending requires manually clicking a button,

    - **Automatic submission** - the invoice is sent to KSeF automatically immediately after issuance, without any additional confirmation.

- Choose the mode that best matches how work is organized at the property.
