Tell JVM that it should use both default and custom truststores?

Coming off [this question|http://forums.sun.com/thread.jspa?threadID=5408453] I have solved my problem by importing the entire cacerts keystore into my truststore along with the special certificates I need for SSL contacts with other remote servers.
But this feels like a bit of a hack. Rather than doing this, I'd like to be able to tell the JVM "use this truststore but also look at the default when you're making an SSL request". Is there some way to do this with keytool? Or is there some simple way to set this "policy" up in my code? If so, a code sample would be a big help.
Thanks.

In fact, now I'm REALLY confused.
Without messing with SSL contexts, that is, by defining -Djavax.net.truststore and -Djavax.net.truststore.password to point to a truststore file containing just the certificates I want to use, the system fails to trust a certificate that comes from cacerts. By importing all of cacerts and the non-standard certs with keytool, everything worked.
But that seemed ugly so I went through all this and now am passing to SSLContext.init() both truststores (cacerts and the non-cacerts certs). I THOUGHT that solved my problem and it was solved - but then I read the javadocs (see above) and didn't understand why the problem was solved. I then tried the experiment of passing into SSLContext.init() JUST the truststore for the non-cacert certs and THAT STILL works without passing it the cacerts truststore.
Thus it seems that the -Djavax.net.truststore mechanism and the one invoked by SSLContext.setDefault() are different which is not what I had assumed.
Can someone explain this anomaly?

Similar Messages

  • HT5527 How come my iPhone iOS tells me that I have 25 GB storage and customer support writes that my storage allocation was reduced to 5 GB?

    Today I received an email from iCloud that my storage was reduced to the free 5 GB after I had 25 GB of free web space being a former MobileMe customer. But my iPhone tells me that I still have 25 GB of online storage. How come?

    Welcome to the Apple community.
    I think you will find that they are just a little bit slow at removing your storage, don't worry it will happen sooner or later.

  • InDesignCC Keyboard shortcuts, both default and customized, don't work, or work sporadically

    It seems like I'm not the only person having these problems, but I thought it was worthwhile to share my experience to see how many others are having the same issues.
    I have several customized quick keys set up in InDesignCC, along with the default keyset. Some appear to work more or less correctly, some--a good example is "Links/Edit Original", which I attempt to use fairly regularly--don't work at all. Even a default quick key like Save As (cmd + shift + S) doesn't work. All that happens when I try to save as, is the word InDesign in the menu bar flashes every time I hit the key combination. Weirder still, if I put my cursor in the menu, and show the file drop down, and THEN try the quick key, it works just fine. I haven't made any system changes or updates, and this is something that's only a problem with InDesignCC (though I have had some similar issues with IllustratorCC), all my CS6 applications work fine. I've even looked through my keyset to make sure that there weren't any conflicts that I was missing, and there weren't. Does anyone have any ideas on how to fix this, or is anyone else dealing with it themselves?

    This is a symptom of InDesign believing that the keyboard shortcut is allocated to a menuitem within the InDesign menu, most likely within the Services menu.
    Similar behavior is seen for Cmd-Shift-L, which is InDesign's shortcut for left alignment, but by default recent versions of Mac OS X assign it to Search With Google, though it should only work when text is selected. Sometimes the OS beats out InDesign and sometimes it doesn't. It's clearly a bug in how InDesign handles its keyboard shortcut interface with the OS as a result of Cocoaization, and I understand InDesign Engineering spent some time trying to make it work and did not succeed.
    Perhaps you can look in the Services menu for a clue, though its contents sometimes changes dynamically, so that may not work so well.
    (hrmm; I see others have covered the above while I was doing other things. oops.)
    With respect to Edit Original, are you aware that you can invoke that by option-doubleclicking? Not the same, but I find it more convenient.

  • Should I use both GetList and  GetDetail for creating a Data Object?

    Hello, all.
    At first, Thanks for your interesting.
    1. I wounder that  I can make a BAPI Wrapper as Data Object using only GetList.
    When I make a BAPI Wrapper as Data Object using only GetList, SAP shows me a message.
    The message says Data Object can have one root node only (hierarchy = 1 ).
    It means I should use both GetList and  GetDetail.
    I understand that.
    If i need to use only GetList, is there any way?
    Thanks for your interesting again.

    Hi
    I think you are trying to import BAPI wrapper as data object and you are using only "Getlist" BAPI.
    In such case, the data object created will have only root node. i.e Hierarchy =1.
    This is becuse the GetList BAPI has only the info about root node.(i.e, table parameter).
    If you have multiple tables in BE and you want to create a DO with multiple node(hierarchy >1) using BAPI wrapper import, then you have to use "GetDetail" BAPI along with GetList.
    Regards
    Rohith

  • Everytime I want to remote my itunes from my iphone, itunes search for radio-stream updates. I often use remote when I'm not connected to Internet so itunes tell me that I should connect to Internet. This is new since 10.5. Can I turn this off?

    Everytime I want to remote my itunes from my iphone, itunes search for radio-stream updates. I often use remote when I'm not connected to Internet so itunes tell me that I should connect because the radio-stream update can't be made. This is new since 10.5. Can I turn off the search for Radio-Stream or does someone else has an Idea how to fix the problem?

    weird very weird. today i did this again today after already being unsuccessful earlier. exactly the same thing as i have done before, exactly. didn't try to import. didn't say damaged library, copied everything in including date. have tried it about 10 times no luck. today it just worked.
    how weird is that?
    oh well JG - maybe you mixed a magic potion for me?
    anyway, thank you for all the help.
    to anyone else reading this all i can say is keep trying, you never know. follow the above advice. you may feel exasperated and think you have done it already, but keep trying.
    cheers
    P

  • I uploaded all my apps and now it tells me that i dont have enough space and i cant use any of my apps please help me what should i do

    please help me i uplaoded all my apps and now it tell me that i dont have enough space and i cant use any of  my apps please help me.

    Is the message saying:
    Not enough storage
    Not enough/low memory?
    For the former delete some items from the iPod.
    For the latter.double click the home button and close all the apps in the recently used dock. Then power off and then back on the iPod. This frees up memory.

  • Im making a photo slide show using imovie. how will i make a dvd copy that can play in both pc and dvd player.  i dont have an idvd anymore. m using a mbp early 2011 osx 10.8.5

    im making a photo slide show using imovie. how will i make a dvd copy that can play in both pc and dvd player.  i dont have an idvd anymore. m using a mbp early 2011 osx 10.8.5.
    after making the photo slide show, i clicked share>export movie.  after which i burned using toast. the file became a .mov.  i tried playing it in my mac and it worked. my fear now is will it also play in a regular dvd?... i read from google that mov files won't run in dvd players.  what format should i convert it to so it'll play in a dvd player.  can you suggest a faster way i can burn my projects for it takes me almost an hour to export.  im going to make 28 slideshows for my kids in school. *=( if i need to do this process 28 times, i may not be able to finish it on time.  please suggest a software or an alternative as to how i should do this... m more comfortable using imovie than iphoto.  thanks and i hope to hear from someone soon *=j

    Thank you QuickTimeKirk...used toast to burn project... my project was in .mov, i tried to play it a dvd player, it did play... will try again tomorrow using another dvd player just to be sure it'll will really work with dvd players.  thank you again for your reply *=)

  • Ccould you tell me the name of a all in one printers that i can use on mac and pc, could you tell me the name of a all in one printers that i can use on mac and p

    could you tell me the name of a all in one printers that i can use on mac and pc, can i buy it in apple store

    What version of OS X are you using? If it's recent (Snow Leopard or Lion), almost all the newest all-in-one printers (regardless of brands and models) are compatible with both Windows (XP and over) and OS X. Finding a network-operated (or shared) printer could prove more difficult, of course.
    Now, buying one in an Apple Store is another matter, first because I'm not sure you can find printers there (I may be wrong, and it may depend on how big the Apple Store is; I don't remember seeing any in the Paris Apple Stores I went to, namely at the Louvres and near the Opera), and second because you're bound to pay a lot more for one in an Apple Store than in, say, a department store or an electronics retailer.
    Here's a little food for thought: http://www.macbroadband.co.uk/mac-compatible/best-printers-for-apple-macs/

  • I can't send email from my iPad. I am from Australia but on holidays in Greece. Does anyone know what is the smtp outserver for Greece that I should use?

    I can't send email from my iPad. I am from Australia but on holidays in Greece. Does anyone know what is the smtp outserver for Greece that I should use?

    As you haven't told us who your email provider is, no.
    There isn't an SMTP server for Greece - it is either provided by your email provider, or the Internet provider you are connected through.

  • HT204053 I changed my apple id, but my ipad does not allow me to change it for Icloud, so I can't  edit my account so I can access Icloud. I was told at Apple store that I could use both Apple ids, but my old one is no longer recognized. Any suggestions?

    I changed my apple id, but my ipad does not allow me to change it for Icloud, so I can't  edit my account so I can access Icloud. I was told at Apple store that I could use both Apple ids, but my old one is no longer recognized on the appleid website, so my password for my old apple id won't work.
    Any suggestions?

    If you only changed the name of your ID rather than creating a new ID, just go to Settins>iCloud and tap Delete Account then sign back in with the new name.  (Deleting the account from your phone does not delete it from iCloud.  Your data will be synced back to your phone when you sign back in.)
    If you created a new ID, you'll have to go to Settings>iCloud on your phone and turn all data you are syncing with iCloud (contacts, calendars, etc.) to Off.  When prompted choose to keep the data on your iPhone.  (If you are syncing iWork documents with iCloud, also open your iWork apps and turn off iCloud syncing and choose to keep the documents on your phone.)  After everything is turned off, scroll to the bottom and tap Delete Account.  Next, set up a new iCloud account using your other ID, then turn syncing for your data (contacts, etc.) back to On.  When prompted, choose Merge.  This will upload the data to your new account.
    You won't lose any photos in your camera roll or photo library.  If you have any photos in your photo stream that are over 30 days old that are not in your camera roll or saved on your computer, be sure to save these to the camera roll before deleting the account.  To do so, open the photo stream album on your iPhone in the thumbnail view, tap Edit, tap all the photos you need to save to select them, tap Share, then tap Save to Camera Roll.

  • When I sync my iphone 4S using iTunes it only syncs 8.5GB of music, not the entore library as specified.  Is there a capcity default limit of the amount of storage that can be used for music and if so how do I change it?

    When I sync my iphone 4S using iTunes it only syncs 8.5GB of music, not the entore library as specified.  Is there a capcity default limit of the amount of storage that can be used for music and if so how do I change it?

    The only limit is that of the device. No restrictions on how much of it you can use for music. Is part of your music library unchecked?
    tt2

  • I'm new to Mac and the program/all called Numbers. I'm trying to use both Average and small in the same formula. What's I'm trying to do is take 20 cells, find the 10 lowest numbers, then get the average and after that multiply it by .96

    I'm new to Mac and the program/all called Numbers. I'm trying to use both Average and small in the same formula. What's I'm trying to do is take 20 cells in a column,  find the 10 lowest numbers, then get the average and after that multiply it by .96  I used to use Excel and the formula worked fine in that. Here is my Formula
    =(average(small(H201:H220,{1,2,3,4,5,6,7,8,9,10})))*.96
    This formula worked in Excel and when I converted my spreadsheet over to Numbers, this formula no longer works.
    The best that I have been able to do so far is use small in 10 different cells, then get the average of the 10 cells and finally multiply that average by .96  So instead of using 1 cell, I'm using 12 cells to get my answer.
    This is a formula that I will be using all the time. The next cell would be =(average(small(H202:H221,{1,2,3,4,5,6,7,8,9,10})))*.96
    Hoping I explain myself well enough and that someone can help me.
    Thanks

    You can still do it in one cell but it will be more unruly than the Excel array formula.
    =average(small(H201:H220,1),small(H201:H220,2),small(H201:H220,3),...,small(H201:H220,10))*0.96
    where you would, of course, replace the "..." with the remaining six SMALL functions.

  • I just updated to Pages 5.0 and I am writing a document that uses both, Spanish and English...I used to use the inspector to change spelling and languages. How do I do that in this new version?

    I just updated to Pages 5.0 and I am writing a document that uses both, Spanish and English...I used to use the inspector to change spelling and languages. How do I do that in this new version?...HELP!!!

    jedimaster Master wrote:
    how do I do both?
    By choosing SET UP for the "automatic" item at the bottom of the list I referred you to earlier

  • My apple TV is connected to a DTV with an HDMI cable and to my Yamaha receiver via optic cable. We rented a movie on Apple TV and.found that the movie played, but we only got audio for music tracks. Voice tracks were silent using both TV and receiver.

    My apple TV is connected to a DTV with an HDMI cable and to my Yamaha receiver via optic cable. We rented a movie on Apple TV and.found that the movie played, but we only got audio for music tracks. Voice tracks were silent using both TV and receiver.  This only occurred on the rented video and on recorded shows on my cable DVR. previews and other content on Apple TV are fine. Any ideas??

    Previews and trailers do not contain 5.1 audio.
    If you have recently moved your setup, you may have inadvertently changed some of the settings on your receiver. It certainly sounds as though it is unable to play the 5.1 audio from the Apple TV.

  • I have keynote on my mac air.  However, it was purchased by a colleague under his email address.  Now when I go in it tells me that I need to prurchase it and will not let me use keynote.

    I have keynote on my mac air.  However, it was purchased by a colleague under his email address.  Now when I go in it tells me that I need to prurchase it and will not let me use keynote.

    yes, the software is on your Mac but it isnt licenced or owned by you so the digital rights management system Apple employs is blocking the application from being used. Its to stop illegal distribution of downloaded software.
    my only suggestion is to phone Apple and see if they can transfer ownership

Maybe you are looking for

  • Adobe Reader 8 with older Celeron processor

    I have a 5 year old laptop with Celeron 1.1GHz & 128 KB cache. Adobe 8 requirements specify Pentium III all of which have 256 KB cache. Some Pentium IIIs are slower - 433 MHz than my Celeron. Should I try installing Adobe Reader 8 or stick with Adobe

  • MacBook Pro. 4GB to 8GB Upgrade.

    MacBook Pro. 4GB to 8GB. Introduction "Cost-Benefit Analysis" Features Boot Time: Is it affected by the upgrade? Applications Conclusion 1. Introduction Greetings, today I am going to discuss the positive and negatives aspects about the upgrade that

  • Cant sign into facetime

    Ok i have tried signing into FaceTime with two different accounts and it keeps saying,"Cant sign in. Please check your network connection and try again." I am positive my wifi is working. Any suggestions?

  • Middleware: Can not change current Number schema for R3PRODHIER hierarchy

    Hi Gurus, I have the follow problem regards to number schema for R3PRODHIER. All products in CRM came from R3 and they were create under the standard "Material: Product hierarchy", that is  tree levels. Aferward, I had to changed it for using six lev

  • Which PDF print preset settings to use intended for reproduction

    When saving artworks to pdf intended for reproduction which is the correct / safest option to choose for example Press Quality ? and which Destination should be used e.g. Coated FOGRA39 (ISO 12647 - 2:2004) ?