recapture
Posts: 3
Joined: Wed May 06, 2015 9:07 pm

Not able to import certificate

Wed May 06, 2015 9:13 pm

Hello,

I try to setup PowerShell Remoting over HTTPS.
But when I try to import the Certificate I get the error "Cannot find the requested object.".

The same code works perfect on Windows 8.1.

Code: Select all

[Berry]: PS C:\> $file = gci  "C:\Users\Administrator\Documents\Berry.pfx"
[Berry]: PS C:\> $cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($file, "qwert123#", "MachineKeySet,PersistKeySet")
New-Object : Exception calling ".ctor" with "3" argument(s): "Cannot find the requested object.
"
At line:1 char:9
+ $cert = New-Object System.Security.Cryptography.X509Certificates.X509 ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [New-Object], MethodInvocationException
    + FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand
Any Idea?

Thx

jtanner_msft
Posts: 105
Joined: Fri May 01, 2015 7:12 pm

Re: Not able to import certificate

Wed May 06, 2015 10:13 pm

Hello,

I'm trying to check to see if what you are trying is supported on Windows 10 Preview, but to get you unblocked here are the suggested sequence of steps for connecting via powershell to your device:
http://ms-iot.github.io/content/win10/s ... rShell.htm

I hope that helps.
Jonathan Tanner | Microsoft | Windows 10 IoT Core Insider Preview Support | This posting is provided 'as is' with no warranties and confers no rights.

recapture
Posts: 3
Joined: Wed May 06, 2015 9:07 pm

Re: Not able to import certificate

Thu May 07, 2015 4:58 pm

Just to be clear, there is no problem with the Powershell Remoting trough http, as discribed in your link.
I just want to install a certificate on the raspberrypi to enable Powershell Remoting trough https.

Return to “Windows 10 for IoT”