Can't get x509 from servlet filter?

i have a filter and a jsp. currently, both the filter and the jsp attempt to pull the X509 certificate from the request and log it (eventually the filter will perform authentication and the jsp will be a web service). however...the filter is unable to get the certificate, whereas the jsp gets the certificate without problems. why is this? some code below:
**** filter ****
doFilter(...) {
HttpServletRequest request = (HttpServletRequest)servletRequest;
X509Certificate[] obj = (X509Certificate[]) request.getAttribute("java.security.cert.X509Certificate");
but obj is always null. (i even enumerate the attributes - always empty)...
**** jsp ****
essentially the same X509Cert line as above, but obj contains the certificate.
any ideas? i'm using oracle's app server, which uses a modified Apache HTTP server, if that makes a difference.
thanks
chris

http://forum.java.sun.com/thread.jsp?forum=33&thread=346827&start=0&range=15#1436379

Similar Messages

  • Can't get certificate in servlet filter?

    i have a filter and a jsp. currently, both the filter and the jsp attempt to pull the X509 certificate from the request and log it (eventually the filter will perform authentication and the jsp will be a web service). however...the filter is unable to get the certificate, whereas the jsp gets the certificate without problems. why is this? some code below:
    **** filter ****
    doFilter(...) {
    HttpServletRequest request = (HttpServletRequest)servletRequest;
    X509Certificate[] obj = (X509Certificate[]) request.getAttribute("java.security.cert.X509Certificate");
    but obj is always null. (i even enumerate the attributes - always empty)...
    **** jsp ****
    essentially the same X509Cert line as above, but obj contains the certificate.
    any ideas? i'm using oracle's app server, which uses a modified Apache HTTP server, if that makes a difference.
    thanks
    chris

    Hi Chris,
    We talked a little bit couple weeks ago regarding my problem of getting the "Integrated Security" sample code to run. I finally got it running.
    One of the problem was that the certificate information never got passed as environment variables (Null values). The cause is in the dads.conf. In the sample doc, they said it is supposed to be like:
    <Location /pls/orasso>
    PlsqlCGIEnvironmentList SSL_CLIENT_S_DN, SSL_CLIENT_CERT
    </Location>
    <IfDefine SSL>
    <Location /pls>
    SSLOptions ExportCertData StdEnvVars
    </Location>
    </IfDefine>
    It doesn't work. It would work only if your remove <IfDefine SSL> & </IfDefine> directive. I don't know if its a bug since I always use SSL for that sample. Nonetheless it did resolve my problem.
    I hope this may help.

  • Access of JSF Beans from Servlet Filter

    Is there any way how can I access session JSF beans from servlet filter?
    I need to check certain value of JSF bean stored in session scope in my filter.
    Thanks
    ferdo

    Frank,
    I am not sure about phase listener, this is the whole situation:
    as I am not using Container Managed Security with my JSF, after I do sucessfull login into application, I need to store some information into the session scope (user etc) and in the servlet filter I need to find out if the user is connected.
    I was trying to put such info into Servlet Session directly in my bean via External Context and reading the info in Filter.
    This is working fine when my application is running locally (jdev oc4j) but once deployed into Application server, when user login first time, user information is somehow removed from the session, and cannot figure out why.
    So I was thinking to try another approach, to find out from servlet filter if JSF bean value is set or not.
    Any other suggestions? Do not want to swicth to Container Manages Security now.
    ferdo
    null

  • Can we get data from business views  in CR 2008/XI?

    Hi All,
    Can we get data from business views  in CR 2008/XI?
    If its possible, pls let us know how to get connect with Business View in both of these versions and what is the tool that we have to use to create Business Views.
    Thank you,
    Krishna Pingali

    Hi Krishna,
    Crystal Reports/BusinessObjects Enterprise ( BOE ) Business Views can only be created using the BV build which comes with BOE and installed using the Work Station installer for BOE. for both XI and 2008.
    You cannot mix these two versions on the same PC not can one talk to the other, the BV designer must match the same version as BOE. XI ( version 11.0 ) is no longer available but if you mean XI R2 ( version 11.5 ) then it still is.
    It's not completely clear which Business View you are referring to? BOE has a Business View Designer so not sure if this is just a naming problem or not? If you are referring to the BOE Business View Designer then the above is true. If your reference is about some other BV designer or data source then you need to clarify.
    Contact our Sales department for pricing and availability.
    Thank you
    Don

  • How can I get values from listbox?

    Hi all,
    I need to get price values from Price List (Inventory -> Item Master Data screen). It's important to get values from field 'Price' BEFORE item will be added/updated.
    How can I get values from Pricelist listbox?
    Thanks for any suggestions or short sample code.
    Best regards,
    Andy

    Hi Andy
    Here is som sample code that will get the description of the price list and also the price that is displaying at the time. The item master must be open for this snippet of code
      Public Sub GetItemPriceFromOpenWindow()
            'this is assuming item master is open
            Dim oEdit As SAPbouiCOM.EditText
            oEdit = SBO_Application.Forms.GetForm("150", 1).Items.Item("34").Specific
            SBO_Application.MessageBox(oEdit.Value)
            Dim oCmb As SAPbouiCOM.ComboBox
            oCmb = SBO_Application.Forms.GetForm("150", 1).Items.Item("24").Specific
            SBO_Application.MessageBox(oCmb.Selected.Description)
        End Sub
    Hope it helps

  • HT203167 lost my hard drive how can i get songs from ipod back to new computer

    I lost my hard drive and want to get my music back on my new computer. How can I get songs from my ipod to my computer? I am afraid to sync it and losing what is on my ipod. Any help would be appreciated.

    It has always been very basic to always maintain a backup copy of your computer for this very occasion.
    Use your backup copy to put everything back.
    If for some reason you have failed to maintain a backup, not good, then you can transfer itunes purchases from your ipod:  File>Transfer Purchases

  • How can I get Data from the Sound cart in Labview? Does a VI exist?

    How can I get Data from the Sound cart in Labview? Does a VI exist?

    Yes, there are VIs for acquiring data from Sound cards. And examples too. If you don't have LabVIEW yet, do a search on NI's site for example VIs.
    Khalid

  • Can't get playlists from one one computer to another.  Confident Home Sharing is turned on correctly.  Have imac and macbook Air and Lion.  Using smart lists.

    Can't get playlists from one one computer to another.  Confident Home Sharing is turned on correctly.  Have imac and macbook Air and Lion.  Using smart lists.

    Using Ethernet, I am attempting to stream the movies on my computer to my girlfriends computer through iTunes home sharing. I want to watch the movies that are on one computer on another.

  • Anybody had an issues with mail since upgrading to mountain lion? Can't get emails from one account, tried deleting and recreating but to no avail. Set up a new user and it works fine. Macbook pro 13" mid 2010 model.

    Anybody had an issues with mail since upgrading to mountain lion? Can't get emails from one account, tried deleting and recreating but to no avail. Set up a new user and it works fine. Macbook pro 13" mid 2010 model.

    Anybody had an issues with mail since upgrading to mountain lion? Can't get emails from one account, tried deleting and recreating but to no avail. Set up a new user and it works fine. Macbook pro 13" mid 2010 model.

  • How can i get contacts from my old Nokia phone to iphone 4S

    how can i get contacts from my old Nokia phone to iphone 4S?

    Appreciate the reply thank you
    Issue being is I don't have the lead for the samsung any longer but have the memory card?
    An yes I know I need to get them onto my MAC but how is what i'm struggling with?
    Any help would be appreciated.
    Many thanks

  • How can i get data from another database SQL Server use database link from

    I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?

    hi,
    u should see following documentation:
    Oracle9i Heterogeneous Connectivity Administrator's Guide
    Release 1 (9.0.1)
    Part Number A88789_01
    in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
    regards
    umar

  • How can I get music from old mac to new mac?

    How can I get music from old mac to new mac please?
    Can't seem to make Migration Assistant work. Doesn't ask about or transfer files.

    I just migrated into a new MBP from an old one.
    It did not bring the music over.  Apple's instructions are to use the Home Sharing feature of iTunes.
    Open iTunes on your old Mac.  Select Home Sharing under the Advanced menu.  Sign in.  Do the same on your new computer.  Then when the library appears under Home Sharing on the left-hand panel on your new computer's iTunes, you can select all and Add To Library.
    That's what Apple says, anyway.

  • How can I get sound from tv or stereo when watching netflix on MacBook Air?

    I have my macbook air hooked up to my tv and want to watch netflix but the only sound is from my macbook.  How can I get sound from other sources ie tv or stereo?

    Check with Netflix for their system requirements.

  • Can I get warrantee from apple store on my iphone that was bought from Apple in China?

    Can I get warrantee from apple store on my iphone that was bought from Apple in China?  It's still under warrantee, and it's unlocked version. May I get another unlocked one if the phone has to be replaced?

    See Here...
    iTunes: How to move your music to a new computer
    Or...
    From your OLD computer...
    Copy your ENTIRE iTunes FOLDER to an External Drive... and then from the External Drive to your New Computer..
    See Here  >  Move iTunes Library from PC to MAC
    http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html
    Also... Have a look at these 2 Videos...
    http://macmost.com/moving-your-itunes-library.html
    http://macmost.com/moving-your-itunes-media-to-an-external-drive.html

  • How can i get data from a maintance view?

    Hi all.
        Can you give me some suggestion about 'How can i get data from a maintance view?'?
         Thanks
         Best regard

    hi
    good
    go through this link
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ecdf446011d189700000e8322d00/content.htm
    thanks
    mrutyun^

Maybe you are looking for

  • GC statistics in 10g

    We use below query to find "global cache hit ratio" in RAC Environment in 9i, SELECT a.inst_id "Instance", (A.VALUE+B.VALUE+C.VALUE+D.VALUE)/(E.VALUE+F.VALUE) "GLOBAL CACHE HIT RATIO" FROM GV$SYSSTAT A, GV$SYSSTAT B, GV$SYSSTAT C, GV$SYSSTAT D, GV$SY

  • SAP Gui 7.20 Configure Color Settings Greyed Out

    Hi, I have installed the new SAP Gui 7.20 patch 1 on 2 machines at my company.  On one machine we can easily change the color settings for each theme.  On the other PC, we can not go into "Configure Color Settings" to change the colors for any theme.

  • Error message "unsupported image format" over red screen

    Working my way through a project making corrections to a series of jpegs, when the image preview disappears and turns red with the error message "unsupported image format" in small print over the top, the thumbnail is fine and I know the image to be

  • Decimal notation 1234567.89

    Hello guys and girls, We are implementing SAP in Russia and Ukraine. There, digits should appear as 1234567.89 None of SAP standard decimal notations (blank, X or Y) can be used. Do you know how to create new decimal notations? I guess there must hav

  • Weblogic EJB Issues

    Hi, Configuration :- User is using Weblogic 10.3.2 and EJB 3.0. 1) User is using two MDBs (Stateless and MDB) in a EAR file .When he deploys the EAR file deployment is good .    When running the application on log file below error is noticed.Here is