Client PSRP for Linux fails on a clean Debian 9 install of PowerShell due to the inability of libmi to resolve libssl and libcrypto. While this worked as-is on Debian 8, Debian 9 fails unless symlinks for these two libraries are created in the $PSHOME directory.
To work around the problem, create the following symlinks in the PSHOME directory. Verify the version of ssl and crypto that are installed and adjust the references accordlingly.
sudo ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 libssl.so.1.0.0
sudo ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 libcrypto.so.1.0.0
Steps to reproduce
$uri = 'https://outlook.office365.com/powershell-liveid'
$cred = Get-Credential
$session = New-PSSession -ConnectionUri $uri -ConfigurationName Microsoft.Exchange -Credential $cred -Authentication Basic -AllowRedirection
Expected behavior
The connection succeeds.
Actual behavior
The following error is reported:
This parameter set requires WSMan, and no supported WSMan client library was found. WSMan is either not installed or unavailable for this system.
Client PSRP for Linux fails on a clean Debian 9 install of PowerShell due to the inability of libmi to resolve libssl and libcrypto. While this worked as-is on Debian 8, Debian 9 fails unless symlinks for these two libraries are created in the $PSHOME directory.
To work around the problem, create the following symlinks in the PSHOME directory. Verify the version of ssl and crypto that are installed and adjust the references accordlingly.
Steps to reproduce
Expected behavior
The connection succeeds.
Actual behavior
The following error is reported:
This parameter set requires WSMan, and no supported WSMan client library was found. WSMan is either not installed or unavailable for this system.