Skip to content
EN

Ways to connect to KSeF

A KSeF token, an authentication certificate, and Profil Zaufany. Accounting firm accounts can also authenticate with a qualified electronic seal. You choose a method during account setup — unavailable options are hidden, so only the ones you can actually use are shown.

A token is the simplest to set up and has no fixed expiry date. The Ministry of Finance has announced a future move to mandatory certificate authentication, but the implementing regulation hasn’t been passed yet, so the announcement isn’t binding for now. Atestio supports both methods, and you can switch to a certificate at any time without losing data.

A KSeF token is generated in the KSeF Portal, specifying the scope of permissions it should cover (at minimum, issuing and viewing invoices):

Token-generation form in the KSeF Portal with a list of permissions to select

The generated token is pasted into Atestio, under Settings → Advanced → KSeF integration:

KSeF integration field in Atestio with the NIP and token pasted in

A KSeF certificate is a pair of files issued for the taxpayer’s NIP: a certificate file (.crt) and an encrypted private key (.key, PKCS#8 format).

  1. Open Settings → Advanced → Advanced KSeF authentication.
  2. Upload the .crt file and the .key file downloaded from the KSeF Portal.
  3. Enter the key’s passphrase — the same one set when the key was generated in the KSeF Portal. The passphrase is used only once, to verify the key on upload, and is never stored on the server.
  4. Choose the certificate’s role: authentication or offline mode.
  5. Select Upload and verify.

Certificate-upload form in Atestio with .crt and .key files selected and a passphrase entered

Once verified, the certificate appears in the list with a status:

Status Meaning
Unverified Uploaded, verification not yet confirmed.
Verified Active — can authenticate the KSeF connection.
Revoked Withdrawn — can no longer be used to authenticate.

An account that connected with a certificate or a seal can switch back to signing in with Profil Zaufany at any time, under Settings → Advanced. Saved certificates aren’t deleted — the next sign-in will simply default to Profil Zaufany.

You can reach us at pomoc@atestio.pl — we reply on business days.