Skip to content

Commit 6f6a4b0

Browse files
committed
fix: Improve README.md
1 parent b468f47 commit 6f6a4b0

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ electrónico peruano (DNI) versión 2.
88

99
## Antes de comenzar
1010
Esta aplicación es actualmente compatible solo con distribuciones Linux. Para
11-
usar tu DNIe, necesitarás un lector de SmartCard USB. La mayoría de los lectores
11+
usar tu DNIe, necesitarás un lector de SmartCard o NFC USB. La mayoría de los lectores
1212
disponibles en AliExpress son compatibles. He usado con éxito el [lector
13-
ZoweeTek](https://es.aliexpress.com/item/32222806111.html?spm=a2g0o.detail.pcDetailBottomMoreOtherSeller.18.34d1RvABRvABIW&gps-id=pcDetailBottomMoreOtherSeller&scm=1007.40050.354490.0&scm_id=1007.40050.354490.0&scm-url=1007.40050.354490.0&pvid=4b0b3ecc-022f-4424-99ea-077d1f5a0ced&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.40050.354490.0,pvid:4b0b3ecc-022f-4424-99ea-077d1f5a0ced,tpp_buckets:668%232846%238110%231995&isseo=y&pdp_npi=4%40dis%21PEN%2142.04%2110.30%21%21%2110.90%212.67%21%402101e7f617098241588065532ec86d%2112000031130620577%21rec%21PE%21%21AB&utparam-url=scene%3ApcDetailBottomMoreOtherSeller%7Cquery_from%3A).
13+
ZoweeTek](https://es.aliexpress.com/item/32222806111.html?spm=a2g0o.detail.pcDetailBottomMoreOtherSeller.18.34d1RvABRvABIW&gps-id=pcDetailBottomMoreOtherSeller&scm=1007.40050.354490.0&scm_id=1007.40050.354490.0&scm-url=1007.40050.354490.0&pvid=4b0b3ecc-022f-4424-99ea-077d1f5a0ced&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.40050.354490.0,pvid:4b0b3ecc-022f-4424-99ea-077d1f5a0ced,tpp_buckets:668%232846%238110%231995&isseo=y&pdp_npi=4%40dis%21PEN%2142.04%2110.30%21%21%2110.90%212.67%21%402101e7f617098241588065532ec86d%2112000031130620577%21rec%21PE%21%21AB&utparam-url=scene%3ApcDetailBottomMoreOtherSeller%7Cquery_from%3A) y
14+
[lector ACR122U](https://es.aliexpress.com/item/1005007104130963.html?spm=a2g0o.order_list.order_list_main.5.3446194dYLfYqG&gatewayAdapt=glo2esp).
1415

1516
Para instalar este paquete, ejecuta:
1617
```console
@@ -28,17 +29,17 @@ Para extraer el certificado público de tu DNIe v2, asegúrate de que tu DNIe es
2829
insertado en el lector y ejecuta:
2930

3031
```console
31-
peru_dnie extract signature mi_certificado_de_firma.pem
32+
peru_dnie extract signature mi_certificado_de_firma.crt
3233
```
3334

34-
Este comando genera un archivo llamado `mi_certificado_de_firma.pem`, que
35+
Este comando genera un archivo llamado `mi_certificado_de_firma.crt`, que
3536
contiene tu certificado x509 y clave pública.
3637

3738
Para ver el contenido del archivo, utiliza el siguiente comando `openssl`:
3839

3940

4041
```console
41-
openssl x509 -in mi_certificado_de_firma.pem -noout -text
42+
openssl x509 -in mi_certificado_de_firma.crt -noout -text
4243
```
4344

4445
Deberías ver una salida similar a esta:
@@ -62,7 +63,7 @@ Certificate:
6263
Para extraer la clave pública del certificado, ejecuta:
6364

6465
```console
65-
openssl x509 -pubkey -noout -in mi_certificado_de_firma.pem > mi_llave_publica.pem
66+
openssl x509 -pubkey -noout -in mi_certificado_de_firma.crt > mi_llave_publica.pem
6667
```
6768

6869
Necesitaremos esto para verificar nuestra firma en el siguiente paso.
@@ -108,9 +109,9 @@ using the Peruvian electronic National Identity Document (DNI) version 2.
108109
## Getting started
109110

110111
This application is currently compatible only with Linux distributions. To use
111-
your DNIe, you will need a USB SmartCard reader. Most readers available on
112-
AliExpress are compatible. I have successfully used the [ZoweeTek
113-
successfully](https://es.aliexpress.com/item/32222806111.html?spm=a2g0o.detail.pcDetailBottomMoreOtherSeller.18.34d1RvABRvABIW&gps-id=pcDetailBottomMoreOtherSeller&scm=1007.40050.354490.0&scm_id=1007.40050.354490.0&scm-url=1007.40050.354490.0&pvid=4b0b3ecc-022f-4424-99ea-077d1f5a0ced&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.40050.354490.0,pvid:4b0b3ecc-022f-4424-99ea-077d1f5a0ced,tpp_buckets:668%232846%238110%231995&isseo=y&pdp_npi=4%40dis%21PEN%2142.04%2110.30%21%21%2110.90%212.67%21%402101e7f617098241588065532ec86d%2112000031130620577%21rec%21PE%21%21AB&utparam-url=scene%3ApcDetailBottomMoreOtherSeller%7Cquery_from%3A).
112+
your DNIe, you will need a USB SmartCard or NFC reader. Most readers available on
113+
AliExpress are compatible. I have successfully used the [ZoweeTek](https://es.aliexpress.com/item/32222806111.html?spm=a2g0o.detail.pcDetailBottomMoreOtherSeller.18.34d1RvABRvABIW&gps-id=pcDetailBottomMoreOtherSeller&scm=1007.40050.354490.0&scm_id=1007.40050.354490.0&scm-url=1007.40050.354490.0&pvid=4b0b3ecc-022f-4424-99ea-077d1f5a0ced&_t=gps-id:pcDetailBottomMoreOtherSeller,scm-url:1007.40050.354490.0,pvid:4b0b3ecc-022f-4424-99ea-077d1f5a0ced,tpp_buckets:668%232846%238110%231995&isseo=y&pdp_npi=4%40dis%21PEN%2142.04%2110.30%21%21%2110.90%212.67%21%402101e7f617098241588065532ec86d%2112000031130620577%21rec%21PE%21%21AB&utparam-url=scene%3ApcDetailBottomMoreOtherSeller%7Cquery_from%3A) and
114+
[ACR122U](https://es.aliexpress.com/item/1005007104130963.html?spm=a2g0o.order_list.order_list_main.5.3446194dYLfYqG&gatewayAdapt=glo2esp) successfully.
114115

115116
To install this package, run:
116117

@@ -127,16 +128,16 @@ key verifies your identity and is used to authenticate your digital signatures.
127128
To extract the public certificate from your DNIe v2, ensure your DNIe is
128129
inserted into the reader and run:
129130
```console
130-
peru_dnie extract signature my_signing_certificate.pem
131+
peru_dnie extract signature my_signing_certificate.crt
131132
```
132133

133-
This command generates a file named `my_signing_certificate.pem`, containing
134+
This command generates a file named `my_signing_certificate.crt`, containing
134135
your x509 certificate and public key.
135136

136137
To view the file contents, use the following `openssl` command:
137138

138139
```console
139-
openssl x509 -in my_signing_certificate.pem -noout -text
140+
openssl x509 -in my_signing_certificate.crt -noout -text
140141
```
141142

142143
You should see output similar to this:
@@ -158,7 +159,7 @@ Certificate:
158159

159160
To extract the public key from the certificate, execute:
160161
```console
161-
openssl x509 -pubkey -noout -in my_signing_certificate.pem > my_signing_pubkey.pem
162+
openssl x509 -pubkey -noout -in my_signing_certificate.crt > my_signing_pubkey.pem
162163

163164
```
164165

0 commit comments

Comments
 (0)