I have a program that installs a certificate to Trusted Root (with user's consent). However, some of the users are unable to use my software due to an exception that occures whenever a command to add a certificate is executed. It happens both when using certutil and powershell.
Certutil
Command: -addstore -user -f root cert.pem
Output: -addstore команда НЕ ВЫПОЛНЕНА: 0x80070538 (WIN32: 1336 ERROR_INVALID_ACL)
Список управления доступом (ACL) имеет неверную структуру.
Roughly translates to The access control list structure is invalid
.
PowerShell
Command: Import-Certificate -FilePath .\cert.pem -CertStoreLocation Cert:\CurrentUser\Root
Output: https://i.sstatic.net/xvA8g.jpg
Unfortunately there's not much about that error on the Internet so in case anyone has had experience with it I'd be greatful if you share.
CERTUTIL -addstore -enterprise -f -v root "cert.pem"
-user
installs a certificate only to a current user's profile and-enterprise
installs it machine-wise. When installing a certificate machine-wise it is required to run certutil elevated, while the first option doesn't have this requirement. Nevertheless, thank you for your help!