Title: PowerShell on macOS depends on third-party installed libraries · Issue #5634 · PowerShell/PowerShell · GitHub
Open Graph Title: PowerShell on macOS depends on third-party installed libraries · Issue #5634 · PowerShell/PowerShell
X Title: PowerShell on macOS depends on third-party installed libraries · Issue #5634 · PowerShell/PowerShell
Description: In testing a clean install of PowerShell 6.0.0 on macOS 10.12, it turns out that PowerShell is specifically looking for OpenSSL libraries installed by the Homebrew package manager. PowerShell should not depend on third party libraries wh...
Open Graph Description: In testing a clean install of PowerShell 6.0.0 on macOS 10.12, it turns out that PowerShell is specifically looking for OpenSSL libraries installed by the Homebrew package manager. PowerShell shoul...
X Description: In testing a clean install of PowerShell 6.0.0 on macOS 10.12, it turns out that PowerShell is specifically looking for OpenSSL libraries installed by the Homebrew package manager. PowerShell shoul...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/5634
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PowerShell on macOS depends on third-party installed libraries","articleBody":"In testing a clean install of PowerShell 6.0.0 on macOS 10.12, it turns out that PowerShell is specifically looking for OpenSSL libraries installed by the Homebrew package manager.\r\n\r\nPowerShell should not depend on third party libraries wherever possible, or should include it's dependencies with the installation package.\r\n\r\nUsing otool, part of the Apple Developer Tools, against libmi.dylib shows that it has hard coded dependancies against two OpenSSL libraries in paths that are installed by Homebrew:\r\n/usr/local/opt/openssl/lib/libssl.1.0.0.dylib\r\n/usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib\r\n\r\nHomebrew, whilst it is a convenient to use package manager, is considered to be a security risk in some contexts as it explicitly makes certain system directories group-writable and sets their owner to the current logged in user on the Mac. Two of the directories that are of concern are /usr/local/bin and /usr/local/share.\r\n\r\nOther package managers for macOS, such as MacPorts, leave these directories owned by root:wheel as they should be and requires the use of sudo to install and manage packages. This is more secure and more in keeping with the traditional Unix way of doing things.\r\n\r\nPowerShell however does not look in /opt for it's OpenSSL libraries which is where MacPorts will install them.\r\n\r\nSteps to reproduce\r\n------------------\r\nOn a clean install of macOS 10.12, install PowerShell 6.0.0-rc from the .pkg installer. Do not install it through Homebrew.\r\n\r\nBegin a New-PSSession to Office 365. The New-PSSession will fail either with an exception or with an error that certain libraries are unable to be found.\r\n\r\nExpected behavior\r\n-----------------\r\nIt is expected that if PowerShell is installed via a .pkg installer that this installer contains all dependencies required for PowerShell to correctly run.\r\n\r\nActual behavior\r\n---------------\r\nExecuting something like:\r\n```powershell\r\n$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection\r\n```\r\neither quits PowerShell completely with an unhandled exception error or it throws an error saying This parameter set requires WSMan, and no supported WSMan client library was found.\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- provide the output of $PSVersionTable -->\r\n\r\n```powershell\r\nPS /Users/kai> $PSVersionTable \r\n\r\nName Value \r\n---- ----- \r\nPSVersion 6.0.0-rc \r\nPSEdition Core \r\nGitCommitId v6.0.0-rc \r\nOS Darwin 17.2.0 Darwin Kernel Version 17.2.0: F...\r\nPlatform Unix \r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} \r\nPSRemotingProtocolVersion 2.3 \r\nSerializationVersion 1.1.0.1 \r\nWSManStackVersion 3.0 \r\n```\r\n","author":{"url":"https://github.com/kai-h","@type":"Person","name":"kai-h"},"datePublished":"2017-12-06T01:32:43Z","url":"https://github.com/PowerShell/PowerShell/issues/5634"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:567cf527-f38b-fdec-cfb0-a0a532c3645d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D130:127FF4:7A9A24:AF356F:6AFD923C |
| html-safe-nonce | 364be8e65d01cf44abd2e9bffcb31529733381bd31181cda7ad0a46f6c6a1c6f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTMwOjEyN0ZGNDo3QTlBMjQ6QUYzNTZGOjZBRkQ5MjNDIiwidmlzaXRvcl9pZCI6IjY0OTQ1NTAxNTc1MjA5MDA2NjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a5b1310aebd097ef82f65e7001aeb18b45f55fd279dbcd473f9c43eedc1e4dc6 |
| hovercard-subject-tag | issue:279593454 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/5634/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8af567a6fc861303cf5c8e77a2c8adedd88a0f7a649d355fb3a5fd13960e4e7d/PowerShell/PowerShell/issues/5634 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8af567a6fc861303cf5c8e77a2c8adedd88a0f7a649d355fb3a5fd13960e4e7d/PowerShell/PowerShell/issues/5634 |
| og:image:alt | In testing a clean install of PowerShell 6.0.0 on macOS 10.12, it turns out that PowerShell is specifically looking for OpenSSL libraries installed by the Homebrew package manager. PowerShell shoul... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | kai-h |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 927a6c5ab1c32b38830f1b9d3050c0b9e9aa92e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width