Overview:
launch test vm with spicevmc, usb-ccid, ccid-card-passthru
create a number of certificates
launch spice-gtk client (it has python wrapping, so can be done directly from the autotest-kvm client process) giving it those certificates
list certificates in vm, verify match
use certificates in vm to authenticate to sometihng using them.
Test the smartcard remoting feature.
automate testing the usage of file based certificates on the client, as explained http://spice-space.org/page/SmartcardUsage.
Overview: launch test vm with spicevmc, usb-ccid, ccid-card-passthru create a number of certificates launch spice-gtk client (it has python wrapping, so can be done directly from the autotest-kvm client process) giving it those certificates list certificates in vm, verify match use certificates in vm to authenticate to sometihng using them.