KSeF token or certificate? A comparison for stores
In short: KSeF token or certificate? Both let software log in to KSeF, and both work side by side (MF FAQ, category "Certyfikaty KSeF", question 3). A token is simpler and today has no expiry date, but it carries its permissions, works in one context, and its future depends on an amendment to the regulation. A KSeF certificate is valid for 2 years, works for many companies, and only a type 2 certificate lets you issue offline invoices with the second QR code.
KSeF token or certificate: table of differences
| Feature | KSeF token | KSeF certificate (type 1) |
|---|---|---|
| What it is | A string of characters generated in KSeF | A pair of files: certificate .crt and key .key with a password |
| Validity | Today until revoked; MF is considering 1-365 days | At most 2 years |
| Carries permissions | Yes, stored when generated | No, the current permissions of the person or company count |
| Works for many companies (contexts) | No, only the context in which it was generated | Yes |
| Limit on number | None | Yes (e.g. 6 active per PESEL) |
| Interactive and batch session | Yes | Yes |
| Revoked when permissions change | No | No |
| Can be revoked | Yes | Yes |
| Second QR code on an offline invoice | No | No, a separate type 2 certificate is used for that |
| Can be used to request a KSeF certificate | No | According to the MF FAQ yes, for another certificate |
| Legal basis after 2026 | The regulation still says 31.12.2026, MF announces a change | No end date |
Table based on Podręcznik KSeF 2.0 (KSeF manual), part I, table 3 and chapters 2.4-2.5, the regulation on using KSeF (§ 6 and § 13) and the MF FAQ. We discuss the last row below. What the "context" a token works in means is explained in the article on the KSeF login context (in Polish).
Legal status: what happens to tokens after 2026
The regulation on using KSeF (Dz.U. 2025 poz. 1815, § 13(1)(1)) allows authentication with a token until 31 December 2026. As of 19 October 2026 this provision had not been amended. The only amendment so far (Dz.U. 2026 poz. 169) concerned other deadlines.
At the same time, MF announces that tokens will remain after 2026 and that the regulation will be amended (MF FAQ, category "Uprawnienia i autoryzacja", question 39). However, in its consultations of 9 June 2026, MF proposed that tokens should in future be valid for 1 to 365 days, with a new permission for automatic renewal with the owner's consent. The Aplikacja Podatnika page on ksef.podatki.gov.pl still describes token generation as available "do 31 grudnia 2026 r." (until 31 December 2026).
There is no such uncertainty for a KSeF certificate. It is valid for at most 2 years from issue or from the chosen start date, and it can be renewed while valid (§ 6(2) of the regulation). Details about tokens, including how to generate and revoke one, are in the article on the KSeF token.
When a token is enough
A token makes sense when:
- the program works for one company only, in one NIP context,
- you want to connect the program quickly, without files and a key password,
- you do not issue offline invoices with two QR codes,
- you are ready to check in December 2026 whether the amendment has come out and whether it introduces an expiry date.
Keep in mind two limits from Podręcznik KSeF 2.0 (part I, chapter 2.4). A token cannot be changed after it is generated, so a new permission needs a new token. And only the person who generated a token may use it. MF considers passing tokens to other people unacceptable.
When a certificate is better
Choose a KSeF certificate when:
- you work for several companies. An accounting office (biuro rachunkowe) with one certificate can serve all clients who have granted it permissions. One client removing permissions does not revoke the certificate (MF FAQ, category "Certyfikaty KSeF", question 10).
- you want predictability. You have an expiry date to put in your calendar, and you do not depend on changes to the token rules.
- your business is a company. A certificate issued to a company is not tied to a specific person, and the company may give it to employees, while remaining responsible for controlling and revoking it (question 9). A certificate issued to an individual is personal (question 8).
- you want permissions to live in one place only. A certificate carries no permissions, so when you change a person's permissions in KSeF, the change applies to the program at once.
Type 2 certificate for offline mode: a token cannot replace it
If you give the buyer an invoice issued offline (offline24, KSeF unavailability, emergency mode) outside KSeF before it has received a KSeF number, it must carry two QR codes. The second one, labelled "CERTYFIKAT", confirms the issuer's identity, and generating it requires a type 2 KSeF certificate (Article 106nda(6) and (7) of the VAT Act; MF FAQ, category "Wystawianie i otrzymywanie faktur", question 4).
This is a separate certificate. In the request you choose the purpose "Podpis linku weryfikacyjnego wystawcy" (signing the issuer verification link), not "Uwierzytelnienie w systemie KSeF" (authentication in KSeF). You cannot generate one certificate for both purposes. A token is not used for signing QR codes at all. More on when an offline invoice has two codes in the article on offline24 mode.
One trap when generating
You cannot generate a KSeF certificate if you logged in with a token. The regulation says directly that after authenticating with a token, a KSeF certificate cannot be produced (§ 13(2)). On logging in with a KSeF certificate, MF materials differ: the FAQ allows you to request another certificate in that case (MF FAQ, category "Certyfikaty KSeF", question 11), while the authentication guide of November 2025 says you cannot. The safest route is a request after logging in through login.gov.pl (the national login node, including Profil Zaufany and mObywatel) or with a qualified signature or seal. Step-by-step guide: how to generate a KSeF certificate.
Recommendation for a store using an app
For a store that connects to KSeF a program or app issuing invoices automatically, we recommend a type 1 KSeF certificate:
- Generate a separate certificate for each program and name it so you know where it is used.
- Set a reminder one month before it expires. You can get a new certificate no earlier than one month before the oldest active certificate expires (Podręcznik KSeF 2.0, part I, chapter 2.5.6).
- Keep the key password in a password manager and the files in a backup. A lost key cannot be recovered.
- If you prefer a token, give it only the permissions needed (issuing and viewing invoices) and check the legal status at the end of December 2026.
The KSeF Faktury app for Shopify supports both methods, but for these reasons we recommend a certificate. How we store it is described on the Security page, and how to upload the files to software in the article how to upload a KSeF certificate to a program (in Polish).
Questions and answers
Can I have a token and a certificate at the same time?
Yes. Both methods work side by side (MF FAQ, category "Certyfikaty KSeF", question 3). For example, you can use a certificate in the store app and a token in another program.
Do a certificate and a token stop working when I remove someone's permissions?
No. Neither a token nor a certificate is revoked when permissions change (Podręcznik KSeF 2.0, part I, table 3). Only what can be done with them changes. To cut off access for sure, revoke the token or certificate.
Which is more secure?
Both are secure as long as they do not leak. A token is a single string, so knowing it is enough. A certificate also needs the key file and the password. In both cases, limit permissions and revoke what you no longer use.
What should I do on 1 January 2027 if my software uses a token?
According to MF's announcement, nothing. But if the amendment to the regulation has not been published by the end of December, the safest option is to switch the software to a KSeF certificate.
Sources
- Podręcznik KSeF 2.0, cz. I (06.08.2026) (KSeF manual, part I): chapters 2.4, 2.5.6, 2.5.9 and table 3
- Rozporządzenie w sprawie korzystania z KSeF, Dz.U. 2025 poz. 1815 (regulation on using KSeF): § 6, § 13; amendment Dz.U. 2026 poz. 169
- Pytania i odpowiedzi KSeF 2.0 (MF FAQ): category "Certyfikaty KSeF", questions 1, 3, 8-11; category "Uprawnienia i autoryzacja", question 39; category "Wystawianie i otrzymywanie faktur", question 4
- Pierwsze konsultacje po częściowym wdrożeniu KSeF: podsumowanie (summary of the first consultations), MF, 11.06.2026
- Instrukcja uwierzytelnienia w Aplikacji Podatnika KSeF 2.0 (authentication guide), MF, November 2025
- Aplikacja Podatnika KSeF 2.0, MF
- Ustawa o podatku od towarów i usług, tekst jednolity Dz.U. 2026 poz. 1263 (VAT Act): Article 106nda(6) and (7)
Legal status as of 23 October 2026.
This article is general information and is not tax advice.