Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when adding SSL certificate for WebSite binding in IIS

When I try to add https binding for my site in IIS I select Binding menu, then certificate that I want to use from drop down list and after I click OK I got an error

Error during operation - A device attached to the system is not functioning (Exception from HRESULT: 0x8007001F)

I've tried different certificates also checked that private keys are exportable

For IIS Host I use Windows 10 Pro 1803 and IIS 10.0.17763.1

UPDATE 1

I've also tried adding SSL certificate with

netsh http add sslcert 127.0.0.1:8035 certhash=hash appid={guid fo appid}

This approach also returned an error

SSL Certificate add failed, Error: 31 A device attached to the system is not functioning

like image 650
Anton Avatar asked Nov 21 '18 16:11

Anton


2 Answers

I've updated cryptography service provider (CryptoPro CSP in my case) for a newer version and rebooted the system and error magically gone away

like image 142
Anton Avatar answered Nov 01 '22 23:11

Anton


Had the same problem with CryptoPro CSP v4.0.9944. As a consequence, was forced to delete CryptoPro CSP, choose certificate in IIS and install again.

like image 29
Anton Polkanov Avatar answered Nov 02 '22 00:11

Anton Polkanov