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

Closed
dantraMSFT opened this issue Aug 22, 2018 · 7 comments · Fixed by #7609
Assignees
Labels
Area-Maintainers-Build specific to affecting the build Resolution-No Activity Issue has had no activity for 6 months or more

Comments

@dantraMSFT
Copy link
Contributor

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.

@iSazonov iSazonov added the Area-Maintainers-Build specific to affecting the build label Aug 22, 2018
@dantraMSFT dantraMSFT self-assigned this Aug 22, 2018
TravisEz13 pushed a commit that referenced this issue Aug 24, 2018
… 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
@iSazonov iSazonov added the Resolution-Fixed The issue is fixed. label Sep 5, 2018
@TravisEz13 TravisEz13 reopened this Nov 15, 2018
@iSazonov iSazonov removed the Resolution-Fixed The issue is fixed. label Nov 16, 2018
@rfoust
Copy link

rfoust 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.

@midacts

This comment has been minimized.

@TravisEz13
Copy link
Member

@midacts Please file a new issue with repro details including installation steps.

Copy link
Contributor

This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

2 similar comments
Copy link
Contributor

This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

Copy link
Contributor

This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Resolution-No Activity Issue has had no activity for 6 months or more label Nov 16, 2023
Copy link
Contributor

This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Maintainers-Build specific to affecting the build Resolution-No Activity Issue has had no activity for 6 months or more
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants