Hi all

We are just starting to work with CACs.

We found the below code in ASP, but so far nothing for CF.

We can get this to work, but would like it in CF if possible.

There seems to be three parts to the CACs:

Encryption Certificate
USERNAME-Identity 
Signature Certificate


And this code only reads from the USERNAME-Identity part of the card.

The email is contained in the Encryption Certificate.
In ASP or CF how can we read this part?

Here is the ASP Code:

<%@ Language = "VBScript"%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<font size="2" face="Verdana, Arial, Helvetica, sans-serif">
        FULL NAME: <%=Request.ClientCertificate("subjectCN")%>
        <br>
        ORGANIZATIONAL UNIT: <%=Request.ClientCertificate("subjectOU")%>
        <br>
        <br>
        <br>

<!--
        <%
          For Each strKey in Request.ClientCertificate
                Response.Write strkey & " = " &
Request.ClientCertificate(strkey) & "<BR>"
          Next
        %>
        <br>
        <br>
        Issuer: <%=Request.ClientCertificate("Issuer")%><br>
        Subject: <%=Request.ClientCertificate("Subject")%><br>
        <% cer=Request.ClientCertificate("Certificate") %>
        Certificate Raw Data: <%=cer%><br>
        Certificate length: <%=len(cer)%><br>
        Certificate Hex Data: 
        <% For x=1 To 100 %>
        <%=hex(asc(mid(cer,x,1)))%>nbsp; 
        <% Next %>
        <br>
        <br>
        <%= Request.ClientCertificate("IssuerCN") %>
-->
</font> 
</body>
</html>

Thanks for any help
Rodney




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Host with the leader in ColdFusion hosting. 
Voted #1 ColdFusion host by CF Developers. 
Offering shared and dedicated hosting options. 
www.cfxhosting.com/default.cfm?redirect=10481

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to