Mifare PKI Card
With Aloaha it is possible to use a Standard 4k Mifare Card as a very cheap contactless PKI card. Just load with Aloaha a normal PFX file into the card and Aloaha will handle the card as if it is a PKI Card.
Besides the very cheap cost of Mifare Cards this solution has lots of advantages. Just move your certificate out of the Windows Certificate Store on to the Mifare Card for extra security.
Below you find a sample script on how to write a PFX File to the Mifare Card:
dim dummy
dim csp
set csp = createobject("aloahacsp.aloaha_csp")
dummy = ""
dummy = dummy + vbCrLf + "[CER]"
dummy = dummy + vbCrLf + "C:\mysink\csp\stefan.pfx"
dummy = dummy + vbCrLf + "[/CER]"
dummy = csp.BSTR2HEX(cstr(dummy))
if csp.set_reader(CLng(0)) = True then
If csp.MifareWriteCard(26, cstr(dummy), "") = True Then
MsgBox "OK"
end if
End If
Aloaha Software / Knowledge Base / Smart Card API / Mifare / Mifare PKI Card