EID VPN/eID VPN
Ubuntu 20.04
Centos 7
Uzinstalēt latvia-eid-middleware paku
pārsaukt /opt/latvian-eid par /opt/latvian-eid.bak
Atspiest latvia-eid arhīvu un pārkopēt uz /opt direktoriju
pārliecināties, vai ir fails /opt/latvia-eid/lib/eidlv-pkcs11.so
pārliecināties, vai ir /usr/lib64/eidlv-pkcs11.so fails, ja nav, tad izveidot symlink
Izveidot pkcs11 moduļi
echo "module:/usr/lib64/eidlv-pkcs11.so" > /etc/pkcs11/modules/opensc.module
pārbaude
3B DD 18 00 81 31 FE 45 90 4C 41 54 56 49 41 2D 65 49 44 90 00 8C
Identity card (eID) Republic of Latvia
http://www.pmlp.gov.lv/lv/pakalpojumi/passes/eid.html
URL: pkcs11:model=PKCS%2315;manufacturer=Oberthur%20Technologies;serial=010011761431013F;token=User%20PIN%20%28LATVIA%20ID%29
Label: User PIN (LATVIA ID)
Type: Hardware token
Flags: RNG, Requires login
Manufacturer: Oberthur Technologies
Model: PKCS#15
Serial: 010011761431013F
Module: /usr/lib/pkcs11/eidlv-pkcs11.so
Token 3:
URL: pkcs11:model=PKCS%2315;manufacturer=Oberthur%20Technologies;serial=010011761431013F;token=Signature%20PIN%20%28LATVIA%20ID%29
Label: Signature PIN (LATVIA ID)
Type: Hardware token
Flags: RNG, Requires login
Manufacturer: Oberthur Technologies
Model: PKCS#15
Serial: 010011761431013F
Module: /usr/lib/pkcs11/eidlv-pkcs11.so
pkcs11:model=p11-kit-trust;manufacturer=PKCS%2311%20Kit;serial=1;token=Default%20Trust
pkcs11:model=PKCS%2315;manufacturer=Oberthur%20Technologies;serial=010011761431013F;token=User%20PIN%20%28LATVIA%20ID%29
pkcs11:model=PKCS%2315;manufacturer=Oberthur%20Technologies;serial=010011761431013F;token=Signature%20PIN%20%28LATVIA%20ID%29
Izmanto iegūto certifikātu
URL: pkcs11:model=PKCS%2315;manufacturer=Oberthur%20Technologies;serial=010011761431013F;token=User%20PIN%20%28LATVIA%20ID%29;id=%a7%82%78%84%61%ce%53%39%0e%e2%34%45%6e%4a%01%bf%c6%ad%49%a1;object=Authentication%20certificate;type=cert
Type: X.509 Certificate (RSA-2048)
Expires: Sun Jun 20 05:02:52 2021
Label: Authentication certificate
ID: a7:82:78:84:61:ce:53:39:0e:e2:34:45:6e:4a:01:bf:c6:ad:49:a1
Atrast atrašanās vietu
Atspiest magic.zip, kur saturā ir lvrtc root sertifikāts eid kartei un novietot ~/magic.pem
Izpildīt komandu
"pkcs11:model=PKCS%2315;manufacturer=Oberthur%20Technologies;serial=010011761431013F;token=User%20PIN%20%28LATVIA%20ID%29;id=%a7%82%78%84%61%ce%53%39%0e%e2%34%45%6e%4a%01%bf%c6%ad%49%a1;object=Authentication%20certificate;type=cert" \
--protocol=gp \
--os=win \
--csd-wrapper="/usr/libexec/openconnect/hipreport.sh" \
--cafile="/home/kasparsb/Documents/magic.pem" \
vpn1.eveseliba.gov.lv
File:latvia-eid-middleware-2.0.6-1-linux-centos-6.10-x86 641.rpm
File:latvia-eid.zip
File:magic.zip
CentOS 8
Uzinstalēt latvia-eid-middleware paku
pārsaukt /opt/latvian-eid par /opt/latvian-eid.bak
Atspiest latvia-eid arhīvu un pārkopēt uz /opt direktoriju
pārliecināties, vai ir fails /opt/latvia-eid/lib/eidlv-pkcs11.so
pārliecināties, vai ir /usr/lib64/eidlv-pkcs11.so fails, ja nav, tad izveidot symlink
Izveidot pkcs11 moduļi
echo "module:/usr/lib64/eidlv-pkcs11.so" > /etc/pkcs11/modules/opensc.module
pārbaude
3B DD 18 00 81 31 FE 45 90 4C 41 54 56 49 41 2D 65 49 44 90 00 8C
Identity card (eID) Republic of Latvia
http://www.pmlp.gov.lv/lv/pakalpojumi/passes/eid.html
URL: pkcs11:model=PKCS%2315;manufacturer=Oberthur%20Technologies;serial=010011761431013F;token=User%20PIN%20%28LATVIA%20ID%29
Label: User PIN (LATVIA ID)
Type: Hardware token
Flags: RNG, Requires login
Manufacturer: Oberthur Technologies
Model: PKCS#15
Serial: 010011761431013F
Module: /usr/lib/pkcs11/eidlv-pkcs11.so
Token 3:
URL: pkcs11:model=PKCS%2315;manufacturer=Oberthur%20Technologies;serial=010011761431013F;token=Signature%20PIN%20%28LATVIA%20ID%29
Label: Signature PIN (LATVIA ID)
Type: Hardware token
Flags: RNG, Requires login
Manufacturer: Oberthur Technologies
Model: PKCS#15
Serial: 010011761431013F
Module: /usr/lib/pkcs11/eidlv-pkcs11.so
pkcs11:model=p11-kit-trust;manufacturer=PKCS%2311%20Kit;serial=1;token=Default%20Trust
pkcs11:model=PKCS%2315;manufacturer=Oberthur%20Technologies;serial=010011761431013F;token=User%20PIN%20%28LATVIA%20ID%29
pkcs11:model=PKCS%2315;manufacturer=Oberthur%20Technologies;serial=010011761431013F;token=Signature%20PIN%20%28LATVIA%20ID%29
Izmanto iegūto certifikātu
URL: pkcs11:model=PKCS%2315;manufacturer=Oberthur%20Technologies;serial=010011761431013F;token=User%20PIN%20%28LATVIA%20ID%29;id=%a7%82%78%84%61%ce%53%39%0e%e2%34%45%6e%4a%01%bf%c6%ad%49%a1;object=Authentication%20certificate;type=cert
Type: X.509 Certificate (RSA-2048)
Expires: Sun Jun 20 05:02:52 2021
Label: Authentication certificate
ID: a7:82:78:84:61:ce:53:39:0e:e2:34:45:6e:4a:01:bf:c6:ad:49:a1
Atrast atrašanās vietu
Atspiest magic.zip, kur saturā ir lvrtc root sertifikāts eid kartei un novietot ~/magic.pem
Izpildīt komandu
"pkcs11:model=PKCS%2315;manufacturer=Oberthur%20Technologies;serial=010011761431013F;token=User%20PIN%20%28LATVIA%20ID%29;id=%a7%82%78%84%61%ce%53%39%0e%e2%34%45%6e%4a%01%bf%c6%ad%49%a1;object=Authentication%20certificate;type=cert" \
--protocol=gp \
--os=win \
--csd-wrapper="/usr/libexec/openconnect/hipreport.sh" \
--cafile="/home/kasparsb/Documents/magic.pem" \
vpn1.eveseliba.gov.lv
File:latvia-eid.zip
File:magic.zip
