Notify users when Yubikey Cert is about to expire

Eskobar
Contributor

Hello,

I want users to get notified "popup" 1 month before Yubikey Cert will expire.

Note: Cert is in the plugged device not in Keychain.

Am using EA to show expiry date: 

Eskobar_0-1678019539143.png

Eskobar_1-1678020370649.png

 

#!/bin/sh

Expire=$(/Applications/YubiKey\ Manager.app/Contents/MacOS/ykman piv info | grep after | awk '{print $3}')

echo "<result>$Expire</result>"

 

Any idea?

1 REPLY 1

Eskobar
Contributor

Eskobar_0-1678041416224.png