Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9103025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T01:31:52+00:00 2026-06-17T01:31:52+00:00

I work on a vertical-market Mac application that uses a USB dongle to make

  • 0

I work on a vertical-market Mac application that uses a USB dongle to make sure users have paid for it. It’s expensive enough, and in enough demand, that “black hats” have tried to crack the dongle scheme, so the app checks the executable and key resource files at runtime, and if something has been tampered with, the program won’t run.

With PKI (Public Key Infrastructure) based code signing becoming more commonplace in the Mac world, I’m considering switching to using it to do this runtime verification, which would have the nice side effect of making Gatekeeper happy.

However, Apple’s interest is very different from mine. Their focus is on making the user happy, so if an app has an incorrect signature, Mac OS X will simply ask the user if they want to run it anyway. My focus is on thwarting crackers, so if my app has an incorrect signature, I simply don’t want it to do anything that’s useful to an end-user.

So I want my app to be able to validate its own executable and resources, using Apple’s signatures, at runtime.

Also, from what I’ve read of the libraries offered Mac OS X for doing validation, they simply give a “yes” or “no” answer to requests to validate an executable. It strikes me that this is susceptible to “black hat” attack in a number of ways – for instance, one could simply replace Apple’s tools with ones that always say, “yes, this is valid”, either in the system directories or by changing the search path for those tools. So I think it might be a good idea to build the complete set of signature validation code into my app.

So I have a few questions:

  1. What PKI libraries/APIs are available to let an app validate its own executable and resources which have been signed using Apple’s codesign system?
  2. Do these libraries have source code available?
  3. Are my security concerns about using the PKI libraries Apple ships with Mac OS X valid, or are they safer to use than I think?
  4. Does anybody have experience with this kind of thing they’d be willing to share? Are there other gotchas or tips?

Thanks in advance for any help with this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T01:31:53+00:00Added an answer on June 17, 2026 at 1:31 am

    To answer #1 and #2 above, Apple has open-sourced its code for creating and verifying digital signatures as libsecurity_codesigning. So a developer could build that into their app to let it validate its own signature.

    Alternatively, MacOS’s version of this library can be used by an app – but the API is private, so that’s a gotcha. There’s a brief discussion at this link.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a vertical slider.Is there any way that I can make the handler
I am trying to make the vertical stretch to work as expected i WPF,
Work on C# Desktop project,I have an account on paypal ,From my desktop application
Work on this small test application to learn threading/locking. I have the following code,
I have following styles which work greate but Vertical-Align:middle or bottom doesn't work in
I have an element that needs to be vertical in a design I have
I have a simple top down vertical shooter a la Galaga that I'm messing
I have two functions, horizontal and vertical, for laying out controls. They work like
I have a problem that I want a Vertical ScrollView on a FrameLayout in
The point is that I have set vertical-align: center property I have a p

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.