libcrypto

Questions and Answers about all things *OS (macOS, iOS, tvOS, watchOS)

libcrypto

Postby blah555 » Mon May 07, 2018 2:16 am

I'm trying to use ssh from another binpack, and it works for LiberTV, but the only problem is, it requires libcrypto.1.0.0.dylib for it to execute.

I managed to download the dylib, but it doesn't read. Upon using jtool to sign the dylib with platform-application entitlements, spits out
Code: Select all
dyld: Library not loaded: /usr/lib/libcrypto.1.0.0.dylib
  Referenced from: /jb/usr/bin/ssh
  Reason: no suitable image found.  Did find:
   /usr/lib/libcrypto.1.0.0.dylib: code signing blocked mmap() of '/usr/lib/libcrypto.1.0.0.dylib'
   /usr/lib/libcrypto.1.0.0.dylib: code signing blocked mmap() of '/usr/lib/libcrypto.1.0.0.dylib'
Abort trap: 6


Without signing it, tells me:
Code: Select all
dyld: Library not loaded: /usr/lib/libcrypto.1.0.0.dylib
  Referenced from: /jb/usr/bin/ssh
  Reason: no suitable image found.  Did find:
   /usr/lib/libcrypto.1.0.0.dylib: required code signature missing for '/usr/lib/libcrypto.1.0.0.dylib'

   /usr/lib/libcrypto.1.0.0.dylib: required code signature missing for '/usr/lib/libcrypto.1.0.0.dylib'

   /usr/lib/libcrypto.1.0.0.dylib: required code signature missing for '/usr/lib/libcrypto.1.0.0.dylib'

   /usr/lib/libcrypto.1.0.0.dylib: required code signature missing for '/usr/lib/libcrypto.1.0.0.dylib'

Abort trap: 6
blah555
 
Posts: 81
Joined: Fri Dec 29, 2017 2:51 am

Re: libcrypto

Postby morpheus » Mon May 07, 2018 9:11 pm

Sign your ssh binary with the same entitlements as zsh (namely, with com.apple.private.skip-library-validation). This is also the same way that Liber* JBs allow quick and easy library loading (rather than weird shenanigans used by others).

FYI, dbclient in the LiberiOS binaries *IS* an ssh client. Symbolically linking it as ssh works, too.
morpheus
Site Admin
 
Posts: 637
Joined: Thu Apr 11, 2013 6:24 pm

Re: libcrypto

Postby blah555 » Mon May 07, 2018 10:31 pm

Oh? great! thanks Jonathan.
blah555
 
Posts: 81
Joined: Fri Dec 29, 2017 2:51 am


Return to Questions and Answers

Who is online

Users browsing this forum: No registered users and 1 guest