this post was submitted on 05 Jan 2024
11 points (86.7% liked)

Programming

17123 readers
132 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 

At the docs of App it says that in order to obtain an attest, this code must be run on an Apple device


import DCAppAttest


let service = DCAppAttestService.shared
if service.isSupported {
   guard let attestationKey = DCAppAttestService.shared.generateKey() else {
        print("Error generating attestation key.")
        return
    }

    // Generate a nonce (you may need to use a more secure source for your actual use case)
    let nonce = Data.random(count: 32)

   // ......
}


Then there's also TTL, that is, every 60 minutes some earlier generated token will have to be refreshed. On an Apple device again, presumably.

Is there a way to execute all of this in non-Apple environment? Or will this code have to be run on an Apple device or server and there's no way around this?


I need to automate this, to generate lots of attests often, for different clients, and I don't want to rent a Mac server instead of a Linux one.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 9 months ago* (last edited 9 months ago)

I think you know the answer deep down in your heart. Embrace the wall, live the garden.