nextcloud / desktop

đź’» Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.05k stars 801 forks source link

Be able to retrieve certificate from smartcard plugged in the computer #4026

Open maximelehericy opened 2 years ago

maximelehericy commented 2 years ago

How to use GitHub

Context

Depending on authentication architectures, a client can have to provide a certificate x509 to authenticate itself against the architecture, before the connection to Nextcloud is allowed. Usually, all clients are able to retrieve this kind of x509 certificates from the user keystore on the user machine.

However, when this x509 certificate is stored on a smartcard protected by PIN code, plugged in the computer on a smartcard reader:

In the two first cases, when accessing a web site using a browser, the PIN code is prompted, so the client has access to the certificate. In the latter case, even if Nextcloud Desktop client is able to handle a x509 certificate to authenticate itself, as it is not able to retrieve the x509 certificate, the WAF rejects all requests, and the user cannot even begin the login process.

Feature description

Make the Nextcloud Desktop client able to retrieve certificates stored on smartcards (Oberthur, Idemia).

Other details

maximelehericy commented 2 years ago

@tobiasKaminsky can you take this into account ? ;)