★ wanayoo — archive 1999 https://github.com/PowerShell/PowerShell/issues/7598Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-PSSession on Linux to office365.com fails on Debian 9 due to missing symlinks for libssl and libcrypto #7598

Open
dantraMSFT opened this issue Aug 22, 2018 · 1 comment

Comments

Projects
None yet
4 participants
@dantraMSFT
Copy link
Contributor

commented Aug 22, 2018

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.

@dantraMSFT dantraMSFT referenced this issue Aug 22, 2018

Closed

PowerShell core release process for v6.1.0-rc.1 #7548

15 of 16 tasks complete

@iSazonov iSazonov added the Area-Build label Aug 22, 2018

@dantraMSFT dantraMSFT self-assigned this Aug 22, 2018

TravisEz13 added a commit that referenced this issue Aug 24, 2018

Add symbolic links for `libssl` and `libcrypto` to Debian 9 builds to…
… make remoting work. (#7609)

On Debian 9, libmi cannot resolve libssl and libcrypto. This change adds symbolic links to packaging and build to the $PSHOME directory to resolve the issue.

The fix was verified interactively connecting to office 365, importing the session, and ensuring Get-MailBox and Get-User succeed.

Fix #7598

@TravisEz13 TravisEz13 reopened this Nov 15, 2018

@rfoust

This comment has been minimized.

Copy link

commented Feb 14, 2019

fwiw, I just ran into this as well on Debian 9, and pwsh 6.1.2 and 6.2.0.preview3. Creating the symlinks resolved the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.