Not getting callbacks for X509TrustManager

hi,
We have an applet trying to connect to server over SSL. Its socket communication. Here i m trying to make the applet open SSL conneciton with server.
the applet is trying to connect to the server over a Fully qualified domain name whose ip is resolved via hosts file. I gave implementation of the X509TrustManager and added it to SSLContext. HOw ever i dont see any call back during the SSL hand shake. I verified this using debug point in eclipse.
the code is as follows
     static {
          try {
               TrustManager[] setupTrustManager=new TrustManager[]{new *DevTrustManager*()};
               SSLContext sslContext = SSLContext.getInstance("TLSv1");
               KeyStore emptyKeyStore = KeyStore.getInstance("JKS");
               emptyKeyStore.load(null);
               KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance("SunX509", "SunJSSE");
               keyManagerFactory.init(emptyKeyStore,null);
               sslContext.init(keyManagerFactory.getKeyManagers(), setupTrustManager, new java.security.SecureRandom());
               factory = sslContext.getSocketFactory();
          } catch (Exception e) {
               e.printStackTrace();
     public static void main(String[] argv){
          SSLSocket socket = connectSocket("connservice123.company.co.in", 2147, 0);
          if(socket!=null){
               System.out.println("conn established...\n" + socket.isConnected());
DevTrustManager
DevTrustManager implements X509TrustManager() {
               public java.security.cert.X509Certificate[] getAcceptedIssuers() {
                    System.out.println("33333333333");
                    return null;
               public void checkClientTrusted(java.security.cert.X509Certificate[] certs, String authType) {
                    System.out.println("1111111111111");
               public void checkServerTrusted(java.security.cert.X509Certificate[] certs, String authType) {
                    System.out.println("222222222222");
When i run the above i get the below SOP:
conn established...
true
Any ideas why the DevTrustManager methods are not getting the callback. The class is a dummy implementation of X509TrustManager with SOPS in it.

user480471 wrote:
We are with proper impl of SSL itself with additional checks like check the CA (to be our own CA) who is verifying the public cert of the server; verify the CN and DNS names of the public certificate etc...Not with that code. That code will accept anything. Chuck it away. If you want to check the certificates further you should be using a HandshakeCompletedListener, not a TrustManager.
//gets the ssl socket and connects to it
connectSocket(String host, int port){
factory.getSocket(host, port);
}This is not correct. There is no getSocket() method in SSLSocketFactory. Did you mean createSocket()?
Any help? Do we have any proper tutorial over net to get my requirement runnning?There is only the JSSE Reference Guide. But you're not doing this the right way. Just use your truststore to control what server certificate signers you will trust, then check the actual server certificate recieved in a HandshakeCompletedListener. It is much simpler than what you're trying to do.

Similar Messages

  • NOT Getting Values for LOCATION...on MultiProvider REPORT

    HI All,
    I have a MultiProvider on 4 cubes.All these 4 cubes having object LOCATION. I can see data in all cubes for LOCATION. I am running a report on this MultiProvider.
    Problem:
    I am not getting Values for LOCATION. Why?
    What I did:
    I checked all location objects of all 4 cubes @ MultiProvider level .
    I didn't use any Infoprovider in Qry designer sections.
    Please suggest. What is the reason how to solve..
    THanks & Regards.
    Sri.
    Edited by: siri26 k on Dec 5, 2008 10:41 AM
    Edited by: siri26 k on Dec 5, 2008 10:41 AM

    hello,
    in the identification tab of the MP,make sure you have checked all four checkboxes across the 4 infoproviders.
    then in Listcube T-Code, select your MP,display the records based on selection inputs and see if location is populated.
    If the data is not coming in listcube, then it will not come in the Query too.
    Reg,
    Dhanya

  • Values not getting displayed for members which doesnt have parents

    Hi
    I created a product dimension with 4 levels .For members which doesnt have parents,data is not getting displayed in JavaClient.
    The values for members which doesnt have parents are getting displayed in the view created for the measures which are dimensioned by Product .I mapped the same view in the CWM2 work space ,but value is not getting displayed for members which doesnt have parents ,but values are getting displayed for members which have parents for measures.
    Is it a bug , we were able to do it in Express ..
    Can anybody help us in doing this.??
    Thnx in Advance......

    Hi,
    This assumes that the members which do not have parents are mapped to the top level in the hierarchy. If they are at a level below the top level then they are not part of the hierarchy and therefore would not be displayed. So this sounds like expected behaviour.
    Hope this helps
    BI Beans PM Team
    Oracle

  • RBA GATP check is not getting invoked for Sales Order

    Hi Everyone,
    RBA GATP check is not getting invoked for Sales order.
    I maintained the configuration settings for 'Rules-Based Availability Check', APO general settings (check mode, check instruction), carried out integrated rule maintenance, Rule determination for the combination of order type & product, associated the check mode to product master. Also maintained all the settings in ECC towards Req class, Req type, checking control etc.
    However, sales order is not invoking RBA Check though it is showing up the 'Rule' icon in the screen. Also, in the APO Availability check in Sales order when I click onto 'check instruction', I get the checking mode that pertains to RBA for business event 'A' (Sales order). Though I have not maintained any stock for the main material for which I have the sales order, yet system is confirming any quantity that I put in.
    I would expect that system would propose the same material in an alternate location where we have stock through RBA.
    Request you to share ideas on this.
    Regards,
    Avijit Dutta

    Hi Avijit,
    You should used No Checking Horizon in Checking instructions and also Check your rule control settings.
    What you have defined in 1st and 2nd steps. Check whether product substitution is carried out or Location Substitution.
    Thanks,
    Bala.

  • Header Vendor text is not getting displayed for PO in BBP_PD transaction.

    Hi Experts,
    We are upgrading   SRM 3.0 to SRM 7.0 .In the upgraded  sys the Header Text 'HTXT' is not getting displayed for the Purchase order created in BBP_PD. For the SCs  the Header text field is populated correctly.
    Inputs on this will be very helpful.
    Regards,
    Ravi.K

    Ravi,
    Check in IMG if the text schema is used in configuring PO transaction type. Define Transaction Types is the setting.
    SG

  • PF not getting deducted for the mid month joinees.

    Hi,
    The problem is coming in the PF deduction of the employees who have joined in the mid of the month.
    For ex if an employee's basic salary is 7000 and the emp joined in the mid of the month , the system is taking PF from RS 3500 , where PF deduction is not applicable. Now the result is PF is not getting deducted for that month which should not happen.
    So kindly guide me how to apply a check in the system so that it deducts the PF of those employees who are joining in the mid of the month and their basic salary is above Rs6500.

    check
    INPA4
    INPA3
    INPA2
    INPA1
    tables  V_INPA1  check the configuration once
    if u dont want f

  • Not getting data for 1 field in ODS

    Hi BW Experts,
    I am loading the data from R/3 to BW.I have loaded the data through PSA.The data is available in New data field. After activating the ODS, for 1 field the data is not uploaded and in the report, the values are not displaying.
    I have checked the Transformations also. it is mapped correctly.But still i am not getting data for that field.
    Thanks,
    Siva.

    Thanks for the Update
    1. What is your Service Pack Level?
      Service Pack is 0016
    2. Are you able to see the data in PSA?
       Yes I can see the data in PSA
    3. After load, are you able to see the value in New table?
       Yes i can able to see the data in New data table
    4. Anywhere, are you doing the SORTING of Data Package?
       No I have not sorted the data Package.I have not written any coding on this
    I have not written any coding in transformation also.
    Thanks,
    Siva.

  • Proposals are not getting generated for BOM items in MD50

    Hi Gurus,
    I have maintained strategy 50 in MRP for header material , Item category gp as LUMF & maintained consumption parameters in material master .
    For dependent requirements i have maintained BOM for production & sales usage, Strategy is blank as it is customer specific component , Item category gp is NORM , individual requirements i.e 1 in MRP 4 view.
    MRP type is PD in both materials.
    When i run a MRP thru' MD50 after getting customer order.
    it is not planning my dependent requirements i.e. proposals are not getting generated for dependent requirements (BOM materials).
    Please let me know the solution.
    Thanx in advance
    Regards,
    Nagraj Vasmate

    try to use strategy 20

  • SQLloder scripts not getting generated for CLOBs

    I am trying to migrate MYSQL 3.23 database into Oracle 8.1.7 and after creating the Oracle model and after converting the MYSQL text datatype into CLOB of the Oracle model the SQLloader scripts is not getting generated for CLOB datatypes. I mean the scripts are getting created but there is no change in the script for CLOB datatype.
    The script generates the following for the table containing CLOB datatypes:
    mysqldump -h <HOST> -u <USERNAME> -p<PASSWORD> -T <DESTINATION_PATH> fields-terminated-by="<ec>" lines-terminated-by="<er>" test av_wbt_course
    Please let me know how to load data when the datatype is of CLOB ?

    I was able to resolve this issue by using OWM Oracle Migration instead of using offline method by sqlloader scripts.

  • Planned order not getting generated for FG

    Dear Experts,
    Planned orders not getting generated for the Finished Goods - X which is having MRP Type M0 - MPS fixing type strategy group 20 which is copied fron another FG - Y , its a new product and production plan has been updated through MC88 - Rough cut planning but the planned orders are not getting generated.
    And for the material valid production version exists with selection method 3 and individullcollective as 1.
    Please let me know what might be the possibalities and what all the key fields i need to check.
    Thanks & Regards,
    Sampath
    Edited by: sampath s on Jul 13, 2011 11:31 AM

    Dear,
    In general MPS is run for High value items ( if you use like Gold , Platimum or A class items. ).
    Always only single level is used for Explosion and planning. then only you can analyse the requirements at each stage before procurement.
    Otherwise if you run MPS to multi level, Bottom most high value will be procured without any notice to authorities. Even you may cancel the process in mid way. At that time what will happen to the procured high value material.
    So for that purpose only single item single level MPS concept is evolved.
    Fo that you run MPS at single level so that only for the first level MPS will be carried out.
    Check and revert back.\
    Regards,
    Alok Tiwari

  • Downloading artwork - "could not get artwork for some albums"

    This might have been addressed before, but I browsed the forum and couldn't find a thread. Sorry if it's been gone over several times.
    I live in Turkey and I've added albums to my iTunes. I checked the box in the Get Info next to Artwork and I selected Get Album Artwork from the Advanced tab. It scans through all the albums and then says "could not get artwork for some albums." "Some" albums means all of them actually. And the error tab details say "artwork not available." I also tried getting artwork by right clicking on a single album but I get the same error. Before it was a 609 error. Now it just says not available.
    I logged out of the store, quit iTunes, loaded it again, re-signed in to the store and tried to get artwork that way, but got the same result. No artwork. The albums are things like Let It Be, Allman Brothers, Ella Fitzgerald... Albums that should certainly have artwork available.
    I'm using Windows Vista.
    Has anyone had and conquered this problem? Any ideas on what I should do? I have 300+ albums, so getting the cover art from wikipedia would be a bit tedious. I'd appreciate any help anyone can give!

    Hello, Welcome to Apple Discussions.
    Are your songs from Audio CDs or iTunes Store? If not you may need to manually find the album artwork for them as these songs may not be listed in the iTunes Store database for your region.
    iTunes: Album art may not download properly
    http://support.apple.com/kb/TS1815
    iTunes will only download album artwork for songs that it can find in the iTunes Store. iTunes will check each song in your iTunes library and attempt to match it up with a song in the iTunes Store. If the data matches, iTunes will download the album artwork from the iTunes Store and add it to the song in your iTunes library. If iTunes does not find a particular song's artwork in the iTunes Store, you will not see an alert message. iTunes simply does not download artwork for that song.

  • How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    How do I move files from my iMac to my Airport without getting 'AirPort can not be modified' message. File sharing is enabled and I'm not getting asked for a password. Thanks

    What OS are you running.. this is usually only a problem in Mavericks.
    If so I recommend you mount the hard disk manually..
    Use Go, Connect to server.
    Type in the IP address if static.. eg
    AFP://10.0.1.1
    Or the name.. but you will have issues unless the name is short, no spaces and pure alphanumeric.. if you are using bad names.. fix it by a full factory reset in airport utility and give it all names that comply to the above.
    Type in
    AFP://TCname.local Where TCname is replaced with the actual name.
    You will be asked for the password the first time which is public unless you changed it.. please remember to save this in the keychain.
    Copy files then to a new directory you create on the TC.. do not place files inside the TM sparsebundle. Nor directly under the main directory.

  • I am part of a family sharing setup.  Can I have my own payment method so the organizer does not get charged for my purchases?

    I am part of a family sharing setup.  Can I have my own payment method so the organizer does not get charged for my purchases?  If so, how do I set this up?

    Yes.  Just redeem gift cards so that your own account always has a sufficient credit balance.  Here is how it works:
    Family purchases and payments
    After you set up your family, any time a family member initiates a new purchase it will be billed directly to your account unless that family member has gift or store credit. First, their store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer's card.

  • VA00 condition type not getting determined for the returns order

    Hi All,
    I have a case where VA00 condition type not getting determined for the returns order that has been created with respect to the billing document.
    When the pricing conditions are being copied from invoice it is getting copied but later it is getting deleted in the include LV61AA42.
    Note:VA00 condition type is getting deleted from the  internal table tkomv[].
    If any one came across  this scenario can you please help me.
    Request your valuable inputs

    Hi,
    Please check the copy control setting in VTAA.
    Maintain the pricing type as "D" at item category level for the respective document type .
    Hope this will resolve your issue.
    Regards,
    Krishna O

  • SAP R/3 -- Not getting prompted for password on Heterogeneous Sys. Copy

    Thank you in advance.  I am part of a project team that is testing the potential of moving from UNIX (AIX 5.3) to Linux (RHEL 4 or 5).  We are running SAP R/3 on IBM P570 with DB2 v9.1 and when we run this program:  Installation master sapinst
    We are not getting prompted for the user password but when we run the same cd on a different system we get prompted for the user's password.  Can anyone point me in the right direction on what is wrong?  If you need more info let me know.
    Thanks,
    Erik

    @ Sven & Markus
    Well I have checked all the logs and there are no errors.  What I have found out is that it successfully runs but there is 0 ouput, in essence it isn't exporting any data.
    Here it shows that it completed successfully but in the export directory there isn't data when there should be.
    INFO       2009-10-08 17:34:19.270 [sixxcstepexecute.cpp:544]
    The installation of component Execution of Service SAP ERP 6.0 Support Release 3 > Software Life-Cycle Options > System Copy
    > IBM DB2 for Linux, UNIX, and Windows > Source System Export > Central System > Based on AS ABAP > Database Instance Export has been completed successfully  has been completed successfully.
    See here:
    /dev/exportlv    119.25    119.23    1%       16     1% /export
    Thanks,
    Erik

Maybe you are looking for

  • Vendor Payment Performance Report

    Hi, I am in the process of developing a report which should show details of Project, Service orders and purchase orders information. If end user inputs project/SO/PO/Vendor in the selection screen of the report, they are expected to see service order

  • Could I have got a new power adapter for free?

    My power adapter for my mac stopped working recently and as far as I know I didn't cause any damage to it myself. I read the following on the apple website: Additional Information Whether your product is in or out of warranty, you can take your adapt

  • Read Only form after Submit to Email

    I have a form i'm working on. Basically its a form I like for users to fill out and then click submit once they are done to send it in an email. The script i found below does what I want but with further testing i found out it's not exactly what I wa

  • How do I get my application window back on my desktop?

    I use an extra LCD display with my G5 which I have temporarily disconnected. When I use Sorenson Squeeze 4.3 it usually appears on the second screen but since I have disconnected it, the application window has disappeared off-screen. I have made sure

  • HT202929 Is there a way to add a hyperlink to a collection of books or to all books of an author?

    Is there a way to add a hyperlink to a collection of books or to all books of an author? On iPad, a iBook link to iTunes won't work, as it opens iTunes Store instead of iBooks Store. I can't even find a way to copy a link to a search on iBook Store..