I assume you're using notarytool but I doubt that it will work unless you have your keychain unlocked