Skip to content

Import-Certificate #520

@Fareroo7

Description

@Fareroo7

I want to use self-signed certificates, like described here: HOWTO

When I try to run this command:

Import-Certificate -FilePath C:\Run\my\certs\tls.crt -CertStoreLocation Cert:\LocalMachine\My\

the following error occurs:

Import-Certificate : Error HRESULT E_FAIL has been returned from a call to a COM component.
At line:1 char:1
+ Import-Certificate -FilePath C:\Run\my\certs\tls.crt -CertStoreLocati ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Import-Certificate], COMException
    + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.CertificateServices.Commands.ImportCertificateCommand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions