Skip to main content

Offline certificate

The offline certificate signs the QR code II (ksefValidationUrl) that KSeF requires on every offline invoice. In KSeF it is a certificate of type Offline, issued for the Podpis linku do weryfikacji wystawcy (Issuer verification link signature) purpose.

You need it only to issue offline invoices, after the Legal Entity is onboarded. Whether you upload it depends on how the Legal Entity is connected to KSeF:

  • KSeF token: you must upload the offline certificate. Follow the tutorial below.
  • Certificate (Manual Authentication): you can skip this page. A-Cube requests the offline certificate from KSeF for you. Upload your own only if you want to use a specific one.

This guide explains how to generate the offline certificate in the KSeF portal and upload it to A-Cube.

Tutorial​

Generate the certificate in KSeF

The certificate must be an offline certificate generated in the KSeF Aplikacja Podatnika of the KSeF environment you use:

1. Open the KSeF login page​

KSeF login page*

2. You will be asked to authenticate​

The authentication flow will depend on the selected authentication option. In this tutorial we will focus only on login.gov.pl.

Authenticate in KSeF AP system

3. Enter your company’s NIP​

Type exactly 10 digits, making sure not to include the PL prefix. Click on the "przejdź dalej" (Continue) button when you’re ready.

Enter your company’s NIP

4. Choose your personal identification method and authenticate yourself​

Choose your personal identification method and authenticate yourself

5. Once authenticated you will be redirected to the KSeF portal​

Once authenticated you will be redirected to the KSeF portal

6. View your current list of certificates​

Click on Lista certyfikatów (Certificates list) to see the current list of certificates associated with the legal entities you manage.

View your current list of certificates

7. Click on Wnioskuj o certyfikat (Apply for a certificate)​

Click on 'Wnioskuj o certyfikat' (Apply for a certificate)

8. Fill in the required fields to generate the certificate's private key and click on Generuj (Generate)​

Fill in the required fields to generate the certificate's private key and click on 'Generuj' (Generate)

9. Save the generated private key on your local machine​

warning

You won't be able to retrieve the private key again. Save it a secure location.

Save the generated private key on your local machine
Select the 'Podpis linku do weryfikacji wystawcy' (Issuer verification link signature) purpose and submit

11. Wait while KSeF generates the certificate​

Wait while KSeF generates the certificate

12. Once the certificate is ready, you will be able to download the certificate's public key​

Once the certificate is ready, you will be able to download the certificate's public key

13. Save the public key in a safe location​

note

Save it along with the private key generated in step 9.

Save the public key in a safe location

14. You can verify that the new certificate now appears in the certificate list.​

You can verify that the new certificate now appears in the certificate list.
Go on A-Cube's dashboard and select Legal Entity

16. Fill the form with the generated files and submit​

Fill the form with the generated files and submit