How to retrieve client certificate information from sender mail adapter

Hi, expert:
I have a requirement to verify the validation of coming email with digital certification. The mail is with digital certification. If the coming email is valid, I 'll get the attachemt of the mail for further processing. I have a sender mail adapter and receiver file adapter configued.
I have already my own developed adapter module, which is configued in mail adapter. My question is how to retrieve the detailed certificate information in the adapter module developed by myself. Is it feasible?
Thanks a lot.

The WL-Client-Proxy cert should be the cert used on the proxy side if SSL is configured between Apache and WebLogic, so I believe that is the reason why that does not work. Basically, the problem here is that SSL is end-to-end, and the two ends of this transaction are the client and apache.
That said, when you add the +ExportCertData option, this should record the client's SSL certificate in the vairable SSL_CLIENT_CERT.  So you should be able to use request.getAttribute("SSL_CLIENT_CERT").
See:
http://www.modssl.org/docs/2.8/ssl_reference.html
If this doesn't work for you (which is possible if the WL_Proxy is doing something funny to the request), it is probably best just to dump out the entire contents of the session, and see what you have:
for (Enumeration e = request.getAttributeNames() ; e.hasMoreElements() ; ) {
String attr = (String)e.nextElement();
System.out.println("ATTR = " + attr);
System.out.println("VAL = " + request.getAttribute(attr));
If you can't see any SSL certificate there, you will have to work out some way to pass this on manually.
cheers,
Trevor

Similar Messages

  • How to download / read  text attachment  in Sender Mail Adapter  IN XI

    Hi
    I would like to know how to download / read text attachment in sender mail Adapter & sent same attachment to target system using file adapter.
    Please help how to design / resolve this concept.
    Regards
    DSR

    I would like to know how to download / read text attachment in sender mail Adapter & sent same
    attachment to target system using file adapter.
    Take help from this blog:
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    From the blog:
    However in most cases
    our message will not be a part of the e-mail's payload but will be sent as a file attachment.
    Can XI's mail adapter handle such scenarios? Sure it can but with a little help
    from the PayloadSwapBean adapter module
    Once your message (attachment) is read by the sender CC, you can perform the basic mapping requirement (if any) to convert the mail message fromat to the file format.....configure a receiver FILE CC and send the message...this should be the design...
    Regards,
    Abhishek.

  • How to retrieve updated payload information from completed HumanTask

    after initiating the HumanTask , updating the payload object from java client api
    payload information set into task object.
    taskService.updateTaskOutcome(workflowContext, task, outcome) ;
    after this call the HumanTask will be Completed.
    Now i tried to get the Payload which was updated in earlier step.
    Task task=taskQueryService.getTaskDetailsByNumber(workflowContext, taskNumber);
    XMLElement payload =(XMLElement)task.getPayloadAsElement();
    in the payload, it only contains payload which was at the time of humanTask initiation .
    Can any one help me, how to retrieve the payload information after completing the HumanTask ?
    Thanks in Advance

    I think the below code can be used to update the payload in the HumanTask
    IWorkflowServiceClient wfSvc=WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
              //instantiate the TaskQueryService Object
              ITaskQueryService taskQuerySvc=wfSvc.getTaskQueryService();
              //instantiate the TaskService Object. it has the UpdateOutcome method
              ITaskService taskSvc=wfSvc.getTaskService();
              final String password="jcooper";
              final int taskNumber=123;
              try {
                   //get WorkflowContext
                   IWorkflowContext context=taskQuerySvc.authenticate("jcooper",password.toCharArray(), "jazn");
                   Task task=taskQuerySvc.getTaskDetailsByNumber(context, taskNumber);
                   Element element=task.getPayloadAsElement();
                   Element payloadNew=element.getOwnerDocument().createElementNS("http://xmlns.oracle.com/bpel/workflow/task", "payload");
                   JAXBContext jaxbContext=JAXBContext.newInstance("object.path");
                   Marshaller marshaller=jaxbContext.createMarshaller();
                   //new Object() is your Object which you want to update in Process payload
                   marshaller.marshal(new Object(), payloadNew);
                   task.setPayloadAsElement(payloadNew);
                   //update task payload
                   taskSvc.updateTaskOutcome(context, task, "APPROVE");
              } catch (WorkflowException e) {
                   e.printStackTrace();
              } catch (JAXBException e) {
                   e.printStackTrace();
              } catch (StaleObjectException e) {
                   e.printStackTrace();
    Edited by: user12267906 on Nov 28, 2009 7:43 AM

  • Read multi-tabbed excel file attachments from Sender Mail Adapter.

    There is a need to read excel attachments from incoming email to a
    mailbox. We know we can use Sender Mail adapter to easily read .xml, .txt
    or .csv attachments.
    For excel attachments we know from SDN that you have to write
    adapter modules to handle excel. However the excel file we need to read has
    multiple worksheets(tabs) and data may be contained in any of them.
    Is it possible to use SAP XI Mailsender adapter to read such a file as an attachment? What kind of module development would we need for this? I am not much of a Java programmer so examples or links to other documentation would help.
    Thanks,
    Rudra

    Rudra,
    Use Java Mapping.  There is a free java api available called JExcelAPI to achieve this. 
    Shabarish's blog describes about this.  This might be helpful to you
    /people/shabarish.vijayakumar/blog/2009/04/05/excel-files--how-to-handle-them-in-sap-xipi-the-alternatives

  • How can I prevent client certificate information from being written to kjs log?

    I have an application running on iPlanet Application server 6.0 that makes an SSL connection to an external site using client certificate. Problem : Every time the connection is wrapped in a client certificate, the entire SSL handshake including the key-exchange information is automatically being logged in the kjs log. How do I prevent the kjs from writing this inormation to the log ?

    How are you making this SSL connection? Whatever library you are using must be writing to System.out().
    You could avoid logging these messages by using file logs rather than console logs. But you could probably disable these messages by working with your SSL libraries as well.

  • How is a client certificate accessed from a servlet that received a SSL3 enabled client-side cert required request

    I would like to know the variables in the http header that hold the client cert information simillar to SSL_CLIENT_CERT variable in apache and how do I access these from a servlet ?

    I would like to know the variables in the http header that hold the client cert information simillar to SSL_CLIENT_CERT variable in apache and how do I access these from a servlet ?

  • How to retrieve client certificate passed by Apache proxy

    Hi all,
    Here's my configuration:
    Client <--HTTPS-->Apache Proxy (2-way SSL) <-- HTTP --> WLS 8.1
    I need to be able to access the client certificate passed to Apache by the client in my Java applications hosted on WLS.
    Here's what I did:-
    <pre>1. Set up Apache 2-way SSL. Tested ok.
    2. Set up Apache-Weblogic proxy. Tested ok for both HTTP, and server-side HTTPS.
    3. Configured Apache's ssl.conf SSLOption to export certifiate data: SSLOptions +ExportCertData.
    4. In my application, I used request.getAttribute("javax.servlet.request.X509Certificate") to try and retrieve the certificate.</pre>
    However the certificate don't seem to be passed along to Weblogic :-(
    Any ideas if I'm missing any steps from above? Or if it's even possible to do this?
    Thanks for any suggestions!
    Any ideas

    The WL-Client-Proxy cert should be the cert used on the proxy side if SSL is configured between Apache and WebLogic, so I believe that is the reason why that does not work. Basically, the problem here is that SSL is end-to-end, and the two ends of this transaction are the client and apache.
    That said, when you add the +ExportCertData option, this should record the client's SSL certificate in the vairable SSL_CLIENT_CERT.  So you should be able to use request.getAttribute("SSL_CLIENT_CERT").
    See:
    http://www.modssl.org/docs/2.8/ssl_reference.html
    If this doesn't work for you (which is possible if the WL_Proxy is doing something funny to the request), it is probably best just to dump out the entire contents of the session, and see what you have:
    for (Enumeration e = request.getAttributeNames() ; e.hasMoreElements() ; ) {
    String attr = (String)e.nextElement();
    System.out.println("ATTR = " + attr);
    System.out.println("VAL = " + request.getAttribute(attr));
    If you can't see any SSL certificate there, you will have to work out some way to pass this on manually.
    cheers,
    Trevor

  • How to retrieve iPhone tracking information from iPhone.

    Does anyone know how to get the tracking information off of the iPhone?  I am trying to get this information as I am fighting a parking ticket I received while my car was valet'd, but have no other record of being at the bar on the night in question (as I paid with cash...the one time I don't use my credit card, right??!!).  If anyone knows how to retrieve the GPS tracking information (more importantly, how to get tracking information for a specific date), your help will be greatly appreciated.  Thanks!

    Sorry but apple stopped tracking that information and it is no longer available. You will not be able to get any tracking information off your phone.

  • Reading an PDF Attachment  From Sender Mail Adapter

    Hi All,
                   i am able to get a mail  from my Mail Server, But my aim is need to Read an PDF attachment from the mail, in SXMB Moni i am getting the Payload with attachment, I have a created a module to convert that PDF to XML(Module is working fine in file to file sceneraio) .
    In adapter should i need to use Payload Swap Bean Module also , because in sap help said that i need  Select Keep Attachments. I want to know how that how to Push the PDF attachment to My Custom Module which is used to convert the PDF To XML.
    If Payload Swap Bean Module needs to be Used , please tell me the Key Names and Key Values to be used.(swap.keyName,swap.keyValues)
    Thanks and Regards,
    Kamal
    Note: Points will be awarded

    Kamal...
    See if this helps
    [Module Name]
      AF_Modules/PayloadSwapBean
    [Module Parameters]
    The following parameters are used for this module
      swap.keyName          the name of a supported attribute.
      swap.keyValue         the value of a partial string that is required
                            to appear.
    The supported attributes (swap.keyName) include the payload attributes
    such as payload-name, payload-description and any content attributes
    such as content-type, content-disposition, content-description, etc.
    Regards
    Ravi Raman

  • Client certificate information

    Hello,
    Does anyone have a definitive answer for how to retrieve
    client certificate information in coldfusionMX7 using Apache 2.0.x
    (just http server, not tomcat)? I can get it out of the environment
    in a perl script...I just don't know how to pass it to
    coldfusion..the client cert CGI variables are null. I've also tried
    using jsp's to retrieve the info. The information is obviously not
    getting to jrun. I've searched high and low, nobody seems to know
    what to do.
    Thanks
    Apache 2.0.x (has been configured with SSLOptions +StdEnvVars
    +ExportCertData)
    Coldfusion MX7

    IVootmon,
    I am trying to do the same on ColdFusionMX7 and ColdFusion8.
    The ColdFusion CGI variables for CERT_ are all empty. Did you find
    a solution to pass CERT_ info to ColdFusion? Thanks.

  • How can we retrieve the Payload information from B2B

    Hello,
    We are trying to send the payload information back to the client for a failed BPEL Transaction from B2B's b2b_instancemessage view. We are enqueing messages to IP_OUT_QUEUE using BPEL. We see the payload coming correctly in the B2B Business Message Reports. But we don't see the payload coming in the b2b_instancemessage view for failed B2B transactions. How can we see the payload in b2b_instancemessage view for failed B2B transactions as well? or How can we retrieve the Payload information from B2B?
    Any help is greatly appreciated! Thanks. - Sam.
    Edited by: user12049162 on Dec 4, 2009 2:04 PM

    I am not sure about the PDK API to get the group name. But using LDAP API its easy to get the User Group.
    If you find the answer to get the group name using PDK API, Please update in forum. It will really help others.
    --Balaji S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to retrieve the parameter names from a JSP page ? Urgent Please

    Hello,
    Can anybody tell me how to retrieve the parameter names from the JSP
    page. (without using getParameterNames() method.)
    The problem with the getParameterNames() method is I get the Jumbled output.
    I need it very badly
    With regards
    Ananth R
    email:[email protected]
    [email protected]

    Dear duffymo,
    My primary intention is to convert the JSP form information into a XML file.
    If I do not get the Parameter names in the correct order how can I maintain
    tag order in XML file.
    For ex: (JSP PAGE VIEW)
    Name--
    FirstName
    MiddleName
    LastName
    Address--
    Street1
    Street2
    City
    Country
    &so on
    (XML File to be generated)
    <Name>
    <FirstName>Value</FirstName>
    </Name>
    <Address>
    <street1>value</street1>
    </Address>
    & so on
    If I use getParameterNames() to get all the parameter names(Which form the tag names in the XML file ) the Enumeration object it returns will not be in the same order as the text fields in JSP.From this I can not construct a meaningful XML file.
    order means: Order of entry on the page, from top to bottom
    That's it
    Waiting for your responses

  • Retrieving free/busy information from the server takes very long time

    Hello, we are running Outlook 2010 32-bit in Windows 7 64.bit, and  have encountered a strange problem, whenever we want to book
    a resource (i.e. conference room) from Scheduling assistant, it takes very long time, sometimes even more than a minute to see the utilization of the room, it being stuck at "Updating schedule information. Retrieving free/busy information from the server"
    The interesting thing is that most newly deployed PCs exhibits this same behavior, while older machines with basically the same setup gets the availability information almost immediately.
    It is unclear whether this is a server setting or desktop issue, as all new Windows 7/Outlook machines that are deployed from the WDS-server exhibits the same slow behavior.
    Please advise any troubleshooting steps to investigate the very slow retrieval lookup of free/busy information from the Exchange server.

    Hi,
    Does this issue occur on OWA?
    If no, it means the issue is mainly related to the Outlook client.
    Regards,
    Simon Wu
    TechNet Community Support

  • Extracting X.509 certificate information from OSB/OWSM

    Hello everyone,
    I'm using SOA suite 11gR1 and I'm creating a proxy service with an OWSM policy ( oracle/wss11_x509_token_with_message_protection_service_policy ) . I'd like to know how to extract the certificate details from the incoming message so my Web Services can acess them with something like the WebServicesContext interface.
    Thanks !

    I am working on this same scenario as well (and agree that OWSM documentation is incomplete for this important use case). Vikas Jain provides some further explanation of Verify Signature in a blog entry: http://ws-security.blogspot.com/2007/06/faq-owsm-1013-what-is-use-of-cerificate.html . Essentially he clarifies that the Verify Signature policy step is doing two different functions: 1) validating the signature using the public cert passed in the request, 2) validating that said public cert is actually trusted by the server (directly or through a trusted CA).
    Unfortunately, even with this assistance, I have yet to get OWSM to work correctly using the X.509 certificate token profile for authentication purposes. OWSS does work for me but the desire is to externalize this security function to OWSM (outside of the service container).
    Any information you find out appreciated.
    Todd

  • HT4865 How do I stop the system from sending e-mail notification every time i update icloud?

    How do I stop the system from sending e-mail notification every time i update icloud?

    Pages.  Every time I add new information to the program I get an e-mail asking me if I was the one logging on.  It is an annoyance.

Maybe you are looking for

  • MAC PRO 2.66 vs DP 2.3 PPC

    Current system DP 2.3 with 4 gig ram Looking to buy MAC PRO 2.66 1 gig ram Would there be a major difference in performance with logic? Thanks

  • Emails with Phantom Characters (again) when viewed by Windows Users

    Seems about every six months the problems of random characters showing up my emails from my Apple to Windows users. Usually this as been "B's" but lately "A's" with carrot signs over them. I have noticed that this comes from all my Apple computers so

  • Highlight node in tree in apex 4

    Hello! The tree has nodes. Node name can include the number in brackets, for example "Messages (1)". Requires such nodes in the tree is highlighted in red, regardless of whether a node is selected or not. At the same time a tree node can be at differ

  • How to give permissions?

    HI, I have created a iView with WebDynpro and i have added the iView to a page in my case test_page.I am able to see the preview with the iView. Then I have created a role and added my page and iView  to it. Then I have created a new user TestOne and

  • Language of iPod

    Hi. I wanna buy an iPod nano in the Netherlands because I'm doing an exchange year there at the moment. But originally I'm from Germany. My problem is that I don't want to buy an iPod that uses Dutch as menu language. So does anyone know which langua