User Tools

Site Tools


juju-manual

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
juju-manual [2016/12/08 19:29]
sgiulitti [Step 2]
juju-manual [2016/12/08 19:31]
sgiulitti [Manually adding the Client certs on the target windows machine]
Line 183: Line 183:
  
 # test client connection with client cert auth and skip the CA verification and CN check # test client connection with client cert auth and skip the CA verification and CN check
-$opt = $SessionOptions = New-PSSessionOption –SkipCACheck –SkipCNCheck –SkipRevocationCheck+$opt = New-PSSessionOption –SkipCACheck –SkipCNCheck –SkipRevocationCheck
 Enter-PSSession -ComputerName $env:COMPUTERNAME -CertificateThumbprint $thumbprint -Authentication Default -SessionOption $opt Enter-PSSession -ComputerName $env:COMPUTERNAME -CertificateThumbprint $thumbprint -Authentication Default -SessionOption $opt
  
  
 # Remove Client mapping (in case you want to remove it) # Remove Client mapping (in case you want to remove it)
 +# THIS WILL REMOVE ALL CLIENT CERTITIFACTES IN WSMAN
 Remove-Item -Path WSMan:\localhost\ClientCertificate\ClientCertificate_* -Recurse -force | Out-null Remove-Item -Path WSMan:\localhost\ClientCertificate\ClientCertificate_* -Recurse -force | Out-null
 </code> </code>
juju-manual.txt · Last modified: 2016/12/08 21:52 (external edit)