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.

Similar Messages

  • 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

  • I can not get the oil paint filter to work in photoshop CC

    Can anyone help me with getting the oil paint filter to work in photoshop CC. I have a high end gaming card for video but it still does not seem to be available. Help. please!

    You must be running Photoshop CC 2014.
    The Oil Paint Filter was present in Photoshop CC but removed in CC 2014
    Photoshop: Spring Cleaning | PHOTOSHOP.COM BLOG
    Photoshop Help | New features summary
    As a Cloud member you can still keep CC installed for when you need the Oil Paint filter.

  • I need to open Kodak CD photo files in photoshop where can i get the plugin or filter?

    I need to open a Kodak CD photo image in photoshop what do i need and where can I get it?

    I have Photoshop CS5 is there a plugin?
    Simon Treadwell
    President
    Treadwell + Company Design Inc.
    Experience, Knowledge, Service
    <Removed by Moderator>

  • Can I  get info about  what Filter a layer  have been set?

    I'm not sure if this is the right place to bring up this issue.
    I hvae read the photoshop reference guide ,  the ArtLayer Object have many Methods about to set Fillters to layer , like  ApplyClouds ,ApplyBlur.......
    unfortunately  there is no such property or method  to get the filter  what I have set before!
    Any Friend  who knows   how to do it ?  no matter via  Scripting or  analysis Photoshop File Formats.

    Thank you ,Well, I  have written a VBS script  named UseHistoryLog.vbs. the contents :
    Set appRef = CreateObject( "Photoshop.Application" )
    appRef.Preferences.UseHistoryLog=true
    appRef.Preferences.SaveLogItems=2
    appRef.Preferences.EditLogItems=2
    appRef.Preferences.SaveLogItemsFile="C:\1.txt"
    ok, the problem is how to do it? ----->   once I lanuch (open ) photoshop, the vbs script I written can be  executed automatically.

  • Can't get the three circle filter on my camera app

    So. My friend was using her phone and on the right corner i seen she had the three circle filter thing right on the camera app, she doesn't know how to get it when I asked, I tried everything. someone help me get this? thank you! ( btw she has a iPhone 4S I have iphone 4 )

    Start at page 78.
    The Manual.

  • Can i get a casino/ bet filter for Mac?

    Hi,
    Just wondered if anyones knows of any software for Macs that prevents people from getting onto gambling sites. I can only find ones that work with Windows.
    Thankyou.

     
    wiggle wrote:
    Hi,
    Just wondered if anyones knows of any software for Macs that prevents people from getting onto gambling sites. I can only find ones that work with Windows.
    Thankyou.
    Check the following places:
    http://www.apple.com/downloadsMap App Store 
    http://www.apple.com/downloads/macosxApple Downloads MacUpdate 
    CNET Mac Downloads
    Good luck!

  • Can't get out of quick filter

    red/pink diagonal lines across screen. unable to exit this screen

    clear what you typed in the filter box.

  • Can't get smart playlist to filter out audiobooks

    I made a simple smart playlist to show all songs with a playcount of zero. Then I added another rule that the "Kind" field had to contain "Music". I did this in an attempt to weed out Audio Books. However, when I clicked OK, my whole smart playlist was empty. If I remove the rule for the "Kind" field, then over 1400 items show up. Why can't I weed out Audio Books?
    Thanks!

    polishedstaple wrote:
    It looks like there are two fields. "Kind" and "Media Kind". I got it to work using "Media Kind". What do you suppose "Kind" is for?
    kind would be e.g. mp3 or AAC. media kind would be e.g. tv show or movie or (apparently) audiobook
    sorry, don't have many audiobooks so i wasn't 100% sure how to set it up.
    but you figured it out and all is cool now, eh ?

  • "Can not get a key" error when assigning the OAuthTokenIssuer certificate

    I am migrating from Lync Server 2010 to 2013. When deploying the 2013 server, it fails when assigning the OAuthTokenIssuer certificate. With the KeyException error below.
    I've tried "re-keying" the cert and confirmed that the key is exportable. Does anyone have any insight on how to resolve this? 
    =============
    <?xml version="1.0" encoding="UTF-8"?>
    -<CsMgmtLog Name="Set-CSCertificate">
    <Info Time="2014-04-21 19:00:53Z" Title="Connection">Data Source=servername.domain.com;Initial Catalog=xds;Integrated Security=True</Info>
    -<Action Name="Set Certificate" Time="2014-04-21 19:00:53Z">
    -<Exception Time="2014-04-21 19:00:54Z" Message="Can not get a key." Type="KeyException">
    <StackTrace Time="2014-04-21 19:00:54Z"> at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.GetCurrentKeyAndUpdate(KeyPolicy& keyPolicy) at Microsoft.Incubation.Crypto.GroupKeys.DKMBase.Protect(MemoryStream plaintext) at Microsoft.Rtc.Management.Internal.KeyManagement.GroupKeyWrapper.Encode(Byte[]
    inBytes) at Microsoft.Rtc.Management.Deployment.Core.Certificate.SetCMSCertificate(IScopeAnchor scope, X509Certificate2 foundCert, X509Certificate2Collection certs, Nullable`1 effectiveTime, Boolean isRoll) at Microsoft.Rtc.Management.Deployment.Core.Certificate.SetCMSCertificate(IScopeAnchor
    scope, String thumbprint, Nullable`1 effectiveTime, Boolean isRoll) at Microsoft.Rtc.Management.Deployment.Tasks.SetCertificateTask.Action() at Microsoft.Rtc.Management.Internal.Utilities.LogWriter.InvokeAndLog(Action action)</StackTrace>
    </Exception>
    <Complete Time="2014-04-21 19:00:54Z"/>
    </Action>
    <Error Time="2014-04-21 19:00:54Z" Title="Error">An error occurred: "Microsoft.Incubation.Crypto.GroupKeys.KeyException" "Can not get a key."</Error>
    </CsMgmtLog>
    =============
    Regards,
    Yai

    Please try to assign the certificate with Lync Server Management Shell.
    Run the following command:
    Set-CSCertificate -Identity Global -Type OAuthTokenIssuer –Thumbprint <string>.
    Check if you can assign default certificate to Lync Front End Server.
    Check the Root Certificate Authority certificate is not expired.
    Lisa Zheng
    TechNet Community Support

  • When i try to set up my icloud account the system says it is sending me an email to verify.  I never get the email and it is not in my spam filter.  How can i get set up??

    when i try to set up my icloud account the system says it is sending me an email to verify.  I never get the email and it is not in my spam filter.  How can i get set up??

    Make sure that your Apple ID is your email address and you do not have any other or old IDs associated with you. Go to www.appleid.apple.com and confirm this info. Make sure that the email address you are trying to sign up with is your primary one.

  • How can I get a name to populate in Certificate Widget?

    Hi,
    I am using Captivate 5.5.  I am trying to use the Certificate Widget which I pulled into my project.  How can I get a user name to populate in the first line?  I will be using a text-entry field to ask for the name and that is the name I want to print on the certificate. 
    Also, I am passing the assessment with a score of 100% but on the Certificate it says 0% and Fail. 
    Any help would be greatly appreciated.
    Thanks

    I am having the same problem. I inserted the blank slide after the results slide and then put the widget in that blank slide.
    I also entered the information into the properties box. The only time the information actually came into the certificate was the very first time. The widget does prompt the use for their name but that only worked the first time. I was also not able to print.
    From what I see in the forum, the widget does not work and we have to create our own.
    I also do not see how the results slide helps determine if they see the certificate or not. If the person fails, they should not see the certificate but I don't find any place to set that up. I have not found these answers in the forum so far.

  • Can't Get My Servlets to Run in Tomcat. Please help...

    Hi!
    I've been banging my head against the same brick wall for a day and a half now and am getting pretty desperate...
    I installed Tomcat 4.1.24 with no problem and successfully ran one or two of the example servlets. However, I can't get my own (working) servlets to run in either ROOT or any other folder that I create under webapps. If I move my servlets into webapps\WEB-INF\classes, though, they run fine!
    Using 'x' represent the folder I've created, I have placed a servlet called FirstServlet in x\WEB-INF\classes. I have also placed the following web.xml file inside x\WEB-INF:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <servlet>
    <servlet-name>FirstServlet</servlet-name>
    <servlet-class>FirstServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>FirstServlet</servlet-name>
    <url-pattern>/servlet/FirstServlet</url-pattern>
    </servlet-mapping>
    </web-app>
    [I have also tried omitting '/servlet' above and tried changing the name of the url-pattern.]
    In addition to this, I have tried editing the server.xml file by adding the following context:
    <Context path="/x" docBase="webapps/x" debug="0"
    reloadable="true">
    </Context>
    Despite all of this, I still continue to get the error message 404: The requested resource is not available.
    Can anybody please give me some idea of what I'm doing wrong or am failing to do??
    Many thanks in anticipation.
    Cheers.
    Jan

    Hi, Sharnee.
    Thanks for taking the time to email me. However, I really don't need to test my servlets, since (a) they all work under the JSWDK Web server and (b) the one that I am attempting to test ('FirstServlet') works fine when I place it in webapps\examples\WEB-INF\classes.
    In answer to your previous email, the URL I have used in attempting to run my servlet (with the servlet in ...\webapps\x\WEB-INF\classes, of course) is:
    http://localhost:8080/x/servlet/FirstServlet
    In desperation, I have also tried each of the following (with similar lack of success):
    http://localhost:8080/webapps/x/servlet/FirstServlet
    http://localhost:8080/ROOT/servlet/FirstServlet (after copying the servlet into ...\webapps\ROOT\WEB-INF\classes)
    http://localhost:8080/webapps/ROOT/servlet/FirstServlet
    Any suggestions?? I'm really frustrated, since the basic process that is required seems so straightforward, but simply isn't working for me!
    Thanks in anticipation.
    Jan

  • How can you get the filter off if you can't remember the password? It's"pro con" and it wont even let me check out the rates for aflight.

    How can you get the filter off if you can't remember the password? It's"pro con" and it wont even let me check out the rates for aflight.

    You can check the file prefs.js in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] and remove the line(s) related to that extension (procon.password).

  • Why can't I use the Glowing Edges on a photo? I am trying to follow a tutorial and when it gets to using that filter it stays grey and wont allow me to use it. It is really frustrating. I have changed images several times hoping it would change things but

    I am following a tutorial in CS5 to learn how to make an image look like a drawing. When we get to the part where I am supposed to use the glowing edges filter it will not allow me to use it. why? I need to access it, how can I get around it?

    Ask in the forum for whatever product you are talking about and by all means do provide some proper technical info like what program you actually mean, system info, document info etc..
    Mylenium

Maybe you are looking for

  • Client Install Issue - SCCM 2012 R2 - Manual Deploy Installed ok

    Hello, I have sccm 2012 configured with 2,000 machine approx. It is been used mainly as a Software Deployment tool for now. On checking a recent IE10 upgrade, I noticed that there is a number of machines that do not have the client installed (and thu

  • Safari 4 doesn't open at all and iTunes 9 doesn't recognize it.

    I've tried everything, but Safari 4 doesn't open at all when i click it from the dock. Since iTunes 9 requires the use of Safari 4 this really ***** because it won't even recognize that it's open. It's strange because it should work! my OS is OS X 10

  • When printing from the web, ie UPS or credit card processing services, pages will not print through firefox, WHY?

    I have been using firefox for my web browser for years, and run some business applications through the internet, like shipping via UPS, and Charging credit cards. When having to print labels or receipts there was never an issue, until today. While tr

  • EXS Sampler

    Hey there, just a quick question regarding this and Recycle.. someone had said they do the same thing and I wasn't sure.. is Recycle worth buying as well as Studio and do they work together well? Or should I just be using the EXS instead of spending

  • How do I double-click with a track-pad?

    I'm new to Mac, and I just bought a beautiful new Apple MacBook laptop. I'm trying to install academic version of Adobe Photoshop 6 (this disk of software was originally made for PCs but I hear it's possible to make it work on a MacBook as well. My q