Skip to main content
Participant
April 5, 2010
Question

Reading a Common Access Card (CAC) to sign form

  • April 5, 2010
  • 3 replies
  • 4386 views

I am new to ColdFusion, but I have experience in using PHP and ASP so the learning curve was not bad. I have worked with InfoPath 2007 creating a few forms. What I want to do is to create a form on a Web page using ColdFusion, which I have completed. One of the requirements I need is to be able to digitally sign the form using the CAC.

Does ColdFusion have the capability of doing this? Can I use ColdFusion to read the certificates on the CAC? I have done a lot of research on this with no luck. I read that there are some Java Wrappers that can do this but have not been able to find any.

    This topic has been closed for replies.

    3 replies

    Under
    Participant
    June 2, 2014

    ...

    Participant
    April 6, 2010

    Check out this link, http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:52720

    It will show you how to read the CAC and get the information you need from the CAC

    Mike

    Inspiring
    June 10, 2010

    Actually, that link does little for you. Why? Because sometimes there are more than one certs on a CAC. For instance on the CAC I have for one of my jobs there are 2. The rest of the applications use the EMAIL cert but the CGI can not read that cert for some reason so I'm stuck with the other (non-email) cert and this confuses people when they are asked which cert to use.

    Not only that, management would like to force people to put in their login to digitally sign documents.  Right now people only have to enter their password when they first sign on and every so often based on the network timeout.

    It would be great to be able to be able to tap into the full potential of the CAC. Even if I have to install a java or .Net component.

    tclaremont
    Inspiring
    June 10, 2010

    Can you get away with building a simple form with network username and password as fields? Then validate that information against the directory to verify that the information matches.

    Take a look at the following:

    <cfldap action="QUERY"
            name="results"
            attributes="SAMAccountName"
            start="DC=domain name,DC=com"
            filter="SAMAccountName=#Form.UserName#*"
            server="ldap.YourDomain.com"
            username="YourDomain\#Form.Username#"
            password="#Form.Password#">

    If the query above returns more than zero records, we know that the username and password are a match.

    ilssac
    Inspiring
    April 5, 2010

    Is digitally signing a form that would be done on a server (where ColdFusion lives and runs) or on a client (where ColdFusion is nothing to do with things)?

    I have never used nor heard of 'digitally signing the forum using the CAC'.  But it sounds like something client related to me.