You have 3 alternatives, but the easiest path is to use the Yubico U2F Validation Server (u2fval) ,which provides U2F registration and authentication through a simple JSON-based REST API, so you won't have to change too much application code.