Skip to main content
Question

Recovery Lock API

  • Jan 17, 2022 8:46 AM UTC
  • 9 replies
  • 119 views

Forum|alt.badge.img+1

Has anyone implemented Recovery Lock on M1 devices using the API successfully ? Could someone share their script if so?

9 replies

Forum|alt.badge.img+4
  • New Contributor
  • Jan 23, 2022 9:00 PM UTC

Forum|alt.badge.img+7
  • Valued Contributor
  • Jan 31, 2022 2:25 PM UTC

I know you can SetRecoveryLock during DEP... but how do you turn it off after that? 


Forum|alt.badge.img+4
  • New Contributor
  • Feb 10, 2022 6:23 AM UTC

I know you can SetRecoveryLock during DEP... but how do you turn it off after that? 


You can use the API to set an empty password, which will turn it off - If you are comfortable using python you the script I mentioned above. 


Forum|alt.badge.img+7
  • Valued Contributor
  • Feb 15, 2022 3:16 PM UTC

You can use the API to set an empty password, which will turn it off - If you are comfortable using python you the script I mentioned above. 


Are there any directions in how to invoke the API? 


mike_prather
Forum|alt.badge.img+3
  • New Contributor
  • Apr 20, 2022 6:10 PM UTC

Here you go - https://github.com/shbedev/jamf-recovery-lock 


Anyone know if this tool or the recovery_lock_key API command also enables the 60 minute key rotation or can that only be done through the PreStage?


Forum|alt.badge.img+4
  • New Contributor
  • Apr 24, 2022 9:28 AM UTC

Anyone know if this tool or the recovery_lock_key API command also enables the 60 minute key rotation or can that only be done through the PreStage?


At the moment, the key rotation is only supported when recovery lock is enabled through PreStage.


mike_prather
Forum|alt.badge.img+3
  • New Contributor
  • Apr 25, 2022 5:29 PM UTC

At the moment, the key rotation is only supported when recovery lock is enabled through PreStage.


That's what I figured - thanks for confirming!


dan-snelson
Forum|alt.badge.img+32
  • Honored Contributor
  • Jun 20, 2022 7:11 PM UTC

Forum|alt.badge.img+8
  • Valued Contributor
  • Aug 30, 2022 8:42 AM UTC

You can find our script here https://gist.github.com/ExperimentalHeaven/09eeafa1122dd4bbac30cb9b91309b52
Simple bash with the use of jq to make the parsing easier