For ID-cards issued on or after November 17, 2025, the ID card’s PIN2 code must be changed in the DigiDoc4 app before the first digital signature is created.
| IDEMIA (ID-cards issued until 14.11.2025) | Thales (ID-cards issued from 17.11.2025) |
|---|---|
| You must apply for a new code envelope from PPA service office. | 1. Forgotten PUK-code can be viewed from PPA self service. 2. Alternatively, you can apply for a new code envelope at the PPA service office. |
| IDEMIA (ID-cards issued until 14.11.2025) | Thales (ID-cards issued from 17.11.2025) |
|---|---|
| PIN-code can be changed in DigiDoc application using the known PUK-code. | PIN-code can be changed in DigiDoc application using the known PUK-code. |
| IDEMIA (ID-cards issued until 14.11.2025) | Thales (ID-cards issued from 17.11.2025) |
|---|---|
| PIN1 and PIN2 block can be removed from DigiDoc application, using the known PUK-code. | PIN1 and PIN2 block can be removed from DigiDoc application, using the known PUK-code. |
| IDEMIA (ID-cards issued until 14.11.2025) | Thales (ID-cards issued from 17.11.2025) |
|---|---|
| You can't view your PUK-code. You must apply for a new security envelope with PIN and PUK codes at a PPA service office or a diplomatic mission of the Republic of Estonia. | 1. PUK-code can be viewed from PPA self service. 2. Alternatively, you can request a valid PUK code from the PPA service office, which will be sent by post to an address in Estonia. |
| IDEMIA (ID-cards issued until 14.11.2025) | Thales (ID-cards issued from 17.11.2025) |
|---|---|
| 1. PIN-code can be changed in DigiDoc application using the known PUK-code. 2. Possibility to apply for a new code envelope from the PPA service office. | PUK-code can not be changed. For a new PUK code, you must apply for a new code envelope from the PPA service office. |
| IDEMIA (ID-cards issued until 14.11.2025) | Thales (ID-cards issued from 17.11.2025) |
|---|---|
| You must apply for a new code envelope from PPA service office. | If the PUK code is blocked, you must apply for the new document. |
| IDEMIA (ID-cards issued until 14.11.2025) | Thales (ID-cards issued from 17.11.2025) |
|---|---|
| 1. By calling 677 3377. | Certificates cannot be suspended. Certificates can only be revoked. |
| IDEMIA (ID-cards issued until 14.11.2025) | Thales (ID-cards issued from 17.11.2025) |
|---|---|
| 1. In PPA service office. 2. By e-mail, with digitally signed application. 3. By mail. | 1. PPA self service choosing service "Revocation of ID card certificates" (logging in with a valid eID). 2. In PPA service office. 3. By e-mail, with digitally signed application. 4. By mail. |
When choosing PIN codes, keep in mind that:
- They must not contain your personal identification number or any part of it; they must consist solely of numbers and must be different from any previously used PIN codes.
- PIN1 must be 4–12 digits long.
- PIN2 must be 5–12 digits long.
- Choose PINs that are easy for you to remember or recall, but difficult for others to guess!
Changing and unblocking the PIN code
If you enter the wrong ID card PIN three times in a row, the card will be blocked for security reasons. You can unblock your PIN using the PUK code in the DigiDoc4 app.
- If you still have your PUK code, you can quickly and conveniently unblock your PIN yourself.
- If you have forgotten your PUK code and your PIN codes are locked, you can request a new code envelope from the Police and Border Guard Board.
- For ID cards issued on or after November 17, 2025, you can view the PUK code via the Police self-service portal by selecting the “View ID Card PUK” service. It is not possible to change the PUK code on new ID cards. You can apply in person at a Police and Border Guard Board service center for a PUK envelope containing your forgotten PUK code. The PUK envelope will be sent only to an address in Estonia, and a state fee applies.
- The ID card remains valid as an identity document—for example, as a travel document—even if its PIN codes are blocked. Blocking the PIN codes affects only the electronic use of the card.
Insert your ID-card into the card reader and open DigiDoc4 in your computer. Wait until DigiDoc4 has read your ID-card data and choose ‘My eID’ from the menu.

Then choose which code you would like to change.
NB! PUK codes for the ID-cards issued from 17. November 2025 can be viewed from Police and Border Guard self-service, selecting service “View ID-card PUK”. It’s not possible to change PUK code for those ID-cards. You can request a PUK envelope containing your forgotten PUK code at the Police and Border Guard Board's service centers. The PUK code envelope will only be sent to an address in Estonia and is subject to a state fee.
To change PIN1 code, click on the button ‘CHANGE PIN1’

You must enter the valid PIN1 code and then the new PIN1 code twice.
The PIN1 that was automatically issued to you contains 4 digits. The new PIN1 code can contain 4-12 digits as long as:
- it contains only numbers;
- the new PIN1 does not match your previous PIN1;
- you don't choose the same number for your PIN1, PIN2 and PUK code;
- you avoid using your birthdate and other easily derived codes such as 0000, 1111, 1234 etc.
To change the PIN2 code, click on the button ‘CHANGE PIN2’.

You must enter the valid PIN2 code and then the new PIN2 code twice.
The PIN2 that was automatically issued to you contains 5 digits. The new PIN2 code can contain 5-12 digits as long as:
- it contains only numbers;
- the new PIN2 does not match your previous PIN2;
- you don’t choose the same number for your PIN1, PIN2 and PUK code;
- you avoid using your birthdate and other easily derived codes such as 00000, 12345, etc.
To change the PUK code, click on the button ‘CHANGE PUK’.

You must enter the valid PUK code and then the new PUK code twice.
The PUK code that was automatically issued to you contains 8 digits. The new PUK code can contain 8-12 digits, as long as:
- it contains only numbers;
- the new PUK does not match your previous PUK;
- you don’t choose the same number for your PIN1, PIN2 and PUK code;
- you avoid using your birthdate and other easily derived codes such as 00000000, 12345678, etc.
A message will be displayed on your screen if the code was successfully changed.
NB! PUK codes for the ID-cards issued from 17. November 2025 can be viewed from Police and Border Guard self-service, selecting service “View ID-card PUK”. It’s not possible to change PUK code for those ID-cards. You can request a PUK envelope containing your forgotten PUK code at the Police and Border Guard Board's service centers. The PUK code envelope will only be sent to an address in Estonia and is subject to a state fee.
Step 1: insert the ID-card into the card reader and open the DigiDoc4 application
The DigiDoc4 icon should be visible in the computer programs list. For users of the following operating systems, the DigiDoc4 application can be found as follows:
- A Windows user can also find it by following the path "Start → All Programs → ID card → DigiDoc4".
- A MacOS user can also find it by following the path "Finder → Go → Applications → DigiDoc4".
- An Ubuntu user can also find it by following the path "Applications menu (by clicking the nine dots at the bottom left of the screen) → DigiDoc4".
Step 2: open ‘My eID’ from the DigiDoc4 menu
Check that DigiDoc4 shows your personal data and open the option ‘My eID’ from the left menu. Here you can see which certificate’s PIN code is blocked.

Step 3: unblock
In order to unblock PIN codes, press the button ‘UNBLOCK’.A window with a PIN code unblocking option will be displayed on your screen, where you must enter a valid PUK code and then the chosen PIN code twice.

Unblocking PIN1 (person identification) and PIN2 (signing) works the same way, but you should remember that:
- PIN1 code must contain 4-12 digits;
- PIN2 code must contain 5-12 digits.
The new code must be different from the previous PIN code, include only numbers and not match (neither partially or fully) your personal identification code.
Fill in the columns and press the button ‘UNBLOCK’. If they PUK code was entered correctly and the new PIN codes complied with the requirements and matched each other, you can see the notice on your screen that the PIN code is unblocked.
Step 1: open the RIA DigiDoc application on your phone
Select "My eID" from the main menu. Next, you will need to identify yourself via "ID card via NFC".
![]() | ![]() |
ID-card via NFC
|
Step 2: select the PIN you are about to change
From the "My eID" view, select "PIN codes and certificates." Select the PIN code you want to change. If both PIN1 and PIN2 codes are locked or forgotten, you must change them separately.
Step 3: select the PIN code changing or unblocking option
If you remember your current PIN, click the "Change PIN1" or "Change PIN2" button. If your PINs have been locked and you want to reset them using your PUK code, select "Forgot your PIN1?" or "Forgot your PIN2?"
![]() | ![]() |
Step 4: create new PINs
If you remember your current PINs, you can change them using the ‘Change PIN’ button’; you need to enter both the current PIN and the new PIN. Once you have entered the new PIN, click on the ‘Continue’ button.
If you do not remember your current PINs or if they are blocked, you need to enter your valid PUK code and then your new PIN. Once you have entered the new PIN, click on the ‘Unblock’ button.
Step 1: open the RIA DigiDoc application on your phone
In the main menu, select the view "My eID". Next, you need to identify yourself via "ID-card via NFC"
![]() | ![]() |
| ID-card via NFC Enter the 6-digit CAN number of your ID card and press the "Identify" button. After successfully retrieving data from the ID card, you will be automatically redirected to the "My eID" view. | |
![]() | ![]() |
Step 2: select the PIN you are about to change
From the "My eID" view, select "PIN`s and certificates". Choose the PIN code you want to change. If both PIN1 and PIN2 codes are locked or forgotten, you will need to change each of them separately.
Step 3: select the PIN code changing or unblocking option
If you remember your current PIN code, click the "Change PIN1" or "Change PIN2" button. If the PIN codes are locked (blocked) and you want to reset them using the PUK code, select "Forgot PIN1?" or "Forgot PIN2?"
ID-cards issued before 14.11.2025 ![]() | ID-cards issued after 17.11.2025 ![]() |
Step 4: create new PINs
If you remember your current PIN codes, you can change them using the “Change PIN code” button: you will need to enter both the valid current PIN code and the new PIN code. After entering the new PIN code, click the “Continue” button and follow the on-screen instructions.
If you don’t remember your current PIN codes or they are blocked, you need to enter a valid PUK code and then a new chosen PIN code. After entering the new PIN code, click the “Unlock PIN1 or PIN2” button.
Code envelope with PIN and PUK codes
Along with your digital ID (such as an ID-card), you will receive a sealed envelope containing your PIN and PUK codes, which are required to use the card electronically.
We recommend that you immediately change the automatically generated PIN codes to ones that are easy to remember without having to write them down! You can change your PIN codes yourself in the DigiDoc4 app.
When you receive a new document (ID-card or residence permit) and its codes, the document is immediately active; you do not need to activate it separately anywhere. However, for cards issued on or after November 17, 2025, you must change the PIN2 code in the DigiDoc4 app before signing for the first time. You can find instructions for changing the PIN2 code here.
If necessary, you can apply for a new code envelope at a Police and Border Guard Board service center or at a diplomatic mission of the Republic of Estonia. The state fees for code envelopes can be found on the Police and Border Guard Board’s website.
NOTE: If the PUK code for an ID card issued on or after November 17, 2025, is blocked, you must apply for a new document.
YouTube: Don’t Throw Away the Envelope with Your PIN Codes!
You can use your ID card to verify your identity when using e-services. This is required, for example, when logging in, signing documents digitally, and encrypting documents. At a bank or police station, you verify your identity with your ID card, passport, or driver’s license. In e-services, you do this using your ID card, certificates, and PIN codes.
An ID card is valid for 5 years. Keep the envelope with your PIN codes even if you don’t currently need to use your ID card electronically. You’ll need the PIN codes when you start using your ID card for e-services.
If you have lost your ID card’s PIN envelope or forgotten your PIN codes, you can obtain a new PIN envelope from a service office of the Police and Border Guard Board or from a diplomatic mission of the Republic of Estonia.
Note: If you forget the PIN or PUK codes for ID cards issued on or after November 17, 2025, you can view the PUK code via the Police and Border Guard Board’s self-service portal by selecting the “View ID Card PUK” service. At Police and Border Guard Board service centers, you can request a PUK envelope containing your forgotten PUK code. The PUK envelope will be sent only to an address in Estonia, and a state fee applies.
A state fee must be paid when applying for new PIN codes. See the Police and Border Guard Board’s website for state fee rates.
YouTube: Make sure you initiated the PIN entry prompt yourself!
Before entering your PIN
- Make sure you initiated the sign-in process yourself.
- Check on your phone which service the request is logging you into.
- If you didn’t initiate the login or don’t recognize the service, cancel the request and do not enter your PIN.
YouTube: Be careful what PIN code you enter—and why!
Enter your PIN2 code only when authorizing a payment.
You use your PIN1 code to log in to online banking. You use your PIN2 code to authorize payments.
Fraudsters create fake bank pages that ask for both your PIN1 and PIN2 codes when you log in. If you enter your PIN2 code, you’re authorizing a payment initiated by the fraudster. This way, you could lose a large sum of money.
Before Entering Your PIN2 Code
- You only need your PIN1 code to log in. If a page asks for your PIN2 code when you log in, cancel the login process.
- Verify that the address is your bank’s correct address.
- Verify that you are being asked for your PIN2 code to authorize a payment that you initiated yourself. Check the payee and the amount.
YouTube: Be careful where you enter your PIN2!
Only enter your PIN2 code if you know what you’re authorizing with it.
Fraudsters in Estonia have tricked people into revealing their PIN2 codes. The victims didn’t know what they were authorizing with the code. This has allowed the scammers to create a Smart-ID account that is not under the rightful owner’s control. Using this account, they have taken out payday loans in another person’s name.
Scammers will contact you through a fake website or a phone call. They’ll ask you to enter your PIN codes into your phone or computer, but won’t tell you what you’re signing. At the same time, they’ll create a new Smart-ID account using your information.
It’s no longer possible to create a Smart-ID account this way. However, scammers are constantly coming up with new tricks.
Before entering your PIN2 code
- Check what you’re signing. Read through the request on your phone or computer.
- Do not enter your PIN2 code if the caller or website asks for it and you don’t know why.
- If you don’t know what you’re signing, cancel the request.
If you enter the PIN incorrectly three times in a row, it will be locked: this protects the ID-card from anyone guessing the PIN through random and persistent trial-and-error attempts. A locked PIN can only be unlocked using the PUK code.
If you have forgotten your PUK code and your PIN codes are locked, you can request a new code envelope from the Police and Border Guard Board’s service center.
Note: For ID cards issued on or after November 17, 2025, you can view the PUK code via the Police and Border Guard Board’s self-service portal by selecting the “View ID Card PUK” service. The PUK code on these ID cards cannot be changed. You can request a PUK envelope containing your forgotten PUK code in person at Police and Border Guard Board service centers. The PUK code envelope will be sent only to an address in Estonia, and a state fee applies.
If possible, memorize your PIN and PUK codes. If you find it difficult to remember the automatically generated codes, you can use the DigiDoc4 app or the RIA DigiDoc mobile app to select new PIN and PUK codes (except for ID-cards issued on or after November 17, 2025; for those, the PUK code cannot be changed).
When changing your PIN and PUK codes, you can also change their length. The code must consist only of numbers and meet the following requirements:
- PIN1 must be 4–12 digits long
- PIN2 must be 5–12 digits long
- The PUK must be 8–12 digits long. NOTE: You cannot change the PUK code on ID cards issued on or after November 17, 2025.
Choose codes that are easy for you to remember but difficult for others to guess.
Do not use overly simple number combinations as PIN codes, such as your birthday or 0000, 1234, 1111, etc. Be sure to avoid using the same code for PIN1, PIN2, and PUK: each code should be unique!
Never share your PIN or PUK codes with others, not even with family members. Even if they are completely trustworthy, they might accidentally lock you out of your account, change your codes “for convenience,” or make them accessible to a thief by writing them down “just in case.”
If you feel it’s safer for you to write down your PIN and PUK codes, make sure to do so in a way that prevents them from being easily misused against you.
Don’t keep them near your card—for example, in your wallet, near your computer, under your keyboard, attached to your phone, or in your phone’s notes under a heading like “PIN codes” or something similar!
Disguise the codes—find a system that works for you. For example, you can disguise your PIN and PUK codes as phone numbers and add them to your contact list under the name of a fictional person; convert them into geographic coordinates; turn them into account numbers; or hide them within another long string of numbers, etc.
Use a password manager that works for you (Google, KeePass, etc.). A password manager helps keep your PIN and PUK codes securely in one place, reducing the risk of forgetting them or them falling into the wrong hands. Codes are stored in an encrypted format in the password manager, so you don’t need to keep them on paper or memorize them, making it more convenient and secure to use.
Related links
Last updated: 30.11.2026











