# Generate a random 32-character nonce for this request.
# In a real application, this should be a cryptographically secure random string.
NONCE=$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 32)
# Press your YubiKey to generate a fresh OTP.
# Replace <YOUR_CLIENT_ID> and <YOUR_YUBIKEY_OTP> with your values.
curl 'https://api.yubico.com/wsapi/2.0/verify?id=<YOUR_CLIENT_ID>&nonce='${NONCE}'&otp=<YOUR_YUBIKEY_OTP>'