Rotate credentials before expiration time.