PKCS#11 middleware for CAC/PIV smartcards