JSSE  Client and server communication problem .err:untrusted server cert

Hai all,
I am trying to communicate JSSE client and server.
I have created root.cert(CA),root.key,server.cert,server.key , client.cert and client.key. All these certificates are created using openssl.
I have placed root.cert in default keystore cacerts.
I have created a keystores(server & client) name mykeystore.
I have placed root.cert and client.cert in the client keystore.
I have placed root.cert and server.cert in the server keystore.
But during the run time i am getting javax.net.ssl.SSLException: untrusted server cert chain.
please suggest the modifications needs to be done to fix the error.
please tell me In the client keystore and in the server keystore....what certificates we need to put?
whether my approach as said above is correct or not?
In java code how to specify this particular certificate we are referring?
I have coded in this way ....
SSLContext ctx;
KeyManagerFactory kmf;
KeyStore ks;
char[] prasad = "prasad".toCharArray();
ctx = SSLContext.getInstance("SSLv3");
kmf = KeyManagerFactory.getInstance("SunX509");
ks = KeyStore.getInstance("jks");
ks.load(new FileInputStream("mykeystore"), prasad);
kmf.init(ks, prasad);
ctx.init(kmf.getKeyManagers(), null, null);
factory = ctx.getSocketFactory();
But my doubt is we are specifying only keystore name with that how it will check root.cert(ca) and client.cert and server.cert?
Is there any modifications need in my code?
Please tell me some way ...
Thanks ,
Prasad.

Hi prasad,
There will be a problem with the certificates being received from thr remote server or client. Check that your trust store contains the certificate of the remote machine or the CA that signed it and that the certificate has not expired.
Also be sure that both machines are using the latest version of the JSSE.
Hope this will help you.
Regards,
Anil.
Technical Support Engineer.

Similar Messages

  • JSSE client and server

    Hai all,
    I am trying to communicate jsse client and server.
    It is showing socket closed error.
    when will we get java.net.SocketException: Socket closed?
    please tell me way to sort this problem
    Thanks,
    Prasad.

    Hi prasad,
    There are two reasons for this error to occur
    java.net.SocketException: Socket closed
    (i)First is that the provider is not registered properly. Check your java.security files and make sure that you have created an entry for
    com.sun.net.ssl.internal.ssl.Provider.
    Then make sure that there are no extra java.security files on your hard drive that are being used by your runtime configure your providers. If there make sure to add the providers to them also.
    (ii) Secondly there may be problem with your keystore. Make sure that you are providing the proper file and password for your keystore.
    If you are using SSL socket server then check the following code:
    SSLServerSocketFactory ssf = (SSLServerSocketFactory )SSLServerSocketFactory.getDefault();
    ServerSocket ss = ssf.createServerSocket(PORT);
    Socket s = ss.accept();
    If you are using regular sockets, perform the following:
    ServerSocket ss = new ServerSocket(PORT);
    Hope this will help you.
    Regards,
    Anil.
    Technical Support Engineer.

  • I keep getting the following message after I download a book and try to open the book from my downloads (in finder) Error getting License. License Server Communication Problem: E_ACT_NOT_READY. It gives me no other information and no options other than to

    I don't really know what to do. I download a book from my library and it then goes to my download folder in finder (I have a macbook pro). When I double click on the downloaded book to open, digital editions comes up and then I get the following message
    Error getting License. License Server Communication Problem:
    E_ACT_NOT_READY
    The only option I have at that point is to close the window. My computer is registered/authorized and I have tried everything I can think of but can't get the books to download into adobe digital editions.
    Help please

    I am having this exact issue. I just downloaded a book and went to open it and got this exact problem.
    I purchased he book through indigo/kobo edition and paid for it and immediately went to open it and am getting the same error
    Error getting License. License Server Communication Problem only mine says  Bad Device key after.
    Not sure why someone has not answered this question yet...i am using windows 7 and this is how i always do it. Never had this problem before when purchasing a book.
    i hope someone answers this soon.

  • I upgraded to a new apple mac book pro and now when I try to download to adobe digital edition I receive this error:Error getting License. License Server Communication Problem: E_ACT_NOT_READY

    I upgraded to a new apple mac book pro and now when I try to download to adobe digital edition I receive this error:Error getting License. License Server Communication Problem: E_ACT_NOT_READY

    What does that have to do with Digital Publishing Suite?
    We’d love to help but if does have something to do with it, please give us
    some details.

  • I am getting an error message "Adobe_unable to download, license server communications problem, e_act_not_ready".  I have downloaded Adobe Digital Editions and have authenticated the computer, but cannot download a book from the library.  What should I do

    I am getting an error message "Adobe_unable to download, license server communications problem, e_act_not_ready".  I have downloaded Adobe Digital Editions and have authenticated the computer, but cannot download a book from the library.  What should I do?

    Having exact same problem, only it's with a book I've paid for, so it hurts more . Any ideas?

  • Error getting license.  License server communication problem  E_AUTH_BAD_DEVICE_KEY_OR_PKCS12.  Does anyone know how to fix this?  I have contacted the company that I purchased the download from, and they say it is an Adobe Digital Editions problem.

    The complete error message reads:
    Error getting license.  License server communication problem  E_AUTH_BAD_DEVICE_KEY_OR_PKCS12
    I have contacted the company that I got the downloadable file from, and they say it is an Adobe problem.
    Does anyone know how to fix this?  Or how to contact Adobe?
    Thanks so much!! 

    do you have a compatible os for the ade version you're trying to use?
    ie, what os/what ade version?

  • Hi can someone explain what the following error code mean and how i can recifty to download a copy of ebook purchase Error getting License. License Server Communication Problem: E_ACT_NOT_READY

    Hi can any one help
    I keep getting the following error code when I try and down a ebook which I have purchase
    Error getting License. License Server Communication Problem:
    E_ACT_NOT_READY
    can someone advise me what this means and how I recifty the problem to enable me to read the ebook purchase?
    Thanks

    I am having this exact issue. I just downloaded a book and went to open it and got this exact problem.
    I purchased he book through indigo/kobo edition and paid for it and immediately went to open it and am getting the same error
    Error getting License. License Server Communication Problem only mine says  Bad Device key after.
    Not sure why someone has not answered this question yet...i am using windows 7 and this is how i always do it. Never had this problem before when purchasing a book.
    i hope someone answers this soon.

  • Communication problem the web server extension (WGATE) failed to receive a

    Hi,
    When a user tries to access his timesheet he get the below error:
    <b>communication problem the web server extension (WGATE) failed to receive a response from the ITS web service</b>
    Only ONE user is getting this error. If everyone get\s the same we can check on the ITS side, but if only ONE user is getting it.
    Please help.
    Regards,
    PK

    HI ALL,
    Thanks for your time. The issue got resolved however without cheking the logs itself. The problem was with the scripfile. All other users and all other scripts were working, except one. And it got recified.
    Regards,
    P. Kumaravel.

  • Why am I getting the error: error getting license License Server communication problem W_ADEPT_CORE_EXPIRED when I try to download a book from the public library using Adobe Digital Editions. It has been working for a few months, but now I suddenly get th

    I have checked and the Adobe Digital Editions is authorized. The library book doesn't expire for another 14 days.  These have been the only two suggestions that I have found in other forums.  Does anyone have any other suggestions?

    I am having this exact issue. I just downloaded a book and went to open it and got this exact problem.
    I purchased he book through indigo/kobo edition and paid for it and immediately went to open it and am getting the same error
    Error getting License. License Server Communication Problem only mine says  Bad Device key after.
    Not sure why someone has not answered this question yet...i am using windows 7 and this is how i always do it. Never had this problem before when purchasing a book.
    i hope someone answers this soon.

  • When I open a book in Adobe Digital Editions, I get the following error: Error getting License. License Server Communication Problem: E_ADEPT_DOCUMENT_TYPE_UNKNOWN:

    Hi, I bought an e-book in PDF format that uses Adobe DRM.  I've created an account on adobe.com and tried downloading the book in Adobe Digital Editions on the Mac (as well as the bookstore's e-reader--logged into my Adobe account--on an Android device). 
    It tries to download the book but get's the following error:
    Error getting License. License Server Communication Problem:
    E_ADEPT_DOCUMENT_TYPE_UNKNOWN:
    Has anyone come across this?  Any guidance would be most appreciated!
    Thanks!
    Tony

    Please refer to the KB article, Public Knowledge Base

  • Recd following error when attempt to open ebook using ADE 4.0  : "Unable to Download. Error getting License. License Server Communication Problem: E_LIC_LICENSE_SIGN_ERROR" iMac 10.8.5  Chrome Version 37.0.2062.124

    recd following error when attempt to open ebook using ADE 4.0  : "Unable to Download. Error getting License. License Server Communication Problem: E_LIC_LICENSE_SIGN_ERROR" iMac 10.8.5  Chrome Version 37.0.2062.124
    chat with customer service at book company i purchased file:
    "Me: I installed the proper adobe software, adobe digital editions 3.0 (now have updated to 4.0) on my mac running os 10.85 however I am getting the following error code when i try to open the file:
    "Error getting License. License Server Communication Problem:
    E_LIC_LICENSE_SIGN_ERROR"
    Charles P.: Okay, what you need to do unfortunately, is contact Adobe at  http://www.adobe.com and they will need to get your license issue resolved.
    Charles P.: Is there anything else I can assist you with today?
    Me: title of error is    Unable to Download
    Me: i dont see how that would be an adobe problem?
    Charles P.: I understand, but it appears that the reason for the download issue is because of the license error the license is related to the Adobe Digital editions software. I understand how this could be confusing but it's due to the authorization of the ADE software. Adobe would need to correct your account issue with the license
    Me: ok but i thought this was a free license from adobe??!!  this is just a digital editions reader, right??
    Charles P.: That is correct it is a free license but your account has to be associated with one license and yes the Digital edition is a ebook reader that our ebooks use for you to view

    Well, just for the halibut I tried opening the book again today and , GLORY BE!,  it worked.
    Guess it may have taken overnight for Adobe to OK my license to their free ADE software. Also works now using Bluefire app as the reader on my android phone, although it was a pain
    to get the book file in the right file folder for bluefire to see it.
    I hope that time also heels the issue with all other Error Getting License users.
    panman

  • Unable to download Error getting License. License Server Communication Problem: E_ACT_NOT_READY.  Cannot open ebooks on my Adobe DE.  How do I fix this?

    Unable to download Error getting License. License Server Communication Problem: E_ACT_NOT_READY.  Cannot open ebooks on my Adobe DE.  How do I fix this?

    I had the exact same problem & this worked for me. All I needed was the first step. Good luck!!!! (copied from another thread):
    "Sometimes ADE gets its registration/activation confused and in a semi-authorized state.
    Uninstalling and reinstalling does not help, and indeed installation can even trigger this state.
    Unfortunately, it often then gives misleading error messages about what is wrong.
    A common incorrect message informs you that the ID is already in use on another computer and cannot be reused.
    Another is  "E_AUTH_NOT_READY"
    This can often be resolved by completely removing any authorization using ctrl-shift-D to the Library screen on ADE (cmd-shift-D if on Mac).
    Restart ADE, and then reauthorize with your (old) Adobe ID.
    In extreme cases on the mac, the following extra step has helped some people.  Navigate to /Users//Library/Application Support/Adobe/Digital Editions and drag the activation.dat file to the trash. If you are using 10.7, see Access hidden user library files | Mac OS 10.7 Lion. http://forums.adobe.com/thread/1265248?tstart=0

  • Can't download book. Get the following message. "Error getting license server communication problem MW_ADEPT_CORE_EXPIRED" I have no faith in this type of communication because I have never recieved answers from forums/ wish you could afford a live person

    can't download book. Get the following message. "Error getting license server communication problem MW_ADEPT_CORE_EXPIRED" I have no faith in this type of communication because I have never recieved answers from forums/ wish you could afford a live person

    I select a book to read from my library it takes me to digital editions and this message comes up. Has been working for a couple of years but something has happened, maybe I did it but don't and to make it worse there is no one to contact to fix it. Get the following message. "Error getting license server communication problem MW_ADEPT_CORE_EXPIRED" I

  • Can anyone please help me to overccome this download error message: "Error getting License, License Server Communication Problem: E_ADEPT_DOCUMENT_OPEN_ERROR. I would be most grateful.

    Can anyone please help me to overcome this e-book download error message? It reads: "Error getting License, License Server Communication Problem: E_ADEPT_DOCUMENT_OPEN_ERROR. I would be most grateful.

    Please try de-authorizing and authorizing again.
    Steps to De-authorize
    1) Switch to Library Mode by clicking Library button
    2) Select menu item Help--> Erase Authorization or Press Ctrl+Shift+D
    3) Click Erase button to De-authorize
    Steps to Authorize
    1) Launch ADE
    2) Switch to Library Mode by clicking Library button (if you are in Reading Mode)
    3) Select menu item Help-->Authorize Computer or Press Ctrl+Shift+U
    4) Enter the valid credential to Authorize
    Hope this solves your problem.

  • Help please! Error getting License. License Server Communication Problem: E_ADEPT_NO_TOKEN.

    Help please! I paid for and downloaded 2 books from eBooks library and it then goes to my download folder (on a Windows PC). When I double click on the downloaded book to open, digital editions comes up and then I get the following message: Error getting License. License Server Communication Problem: E_ADEPT_NO_TOKEN. My computer is authorised and I have tried everything I can think of but can't get the books to download into adobe digital editions. Can anybody help??? Thanks

    I should have mentioned also that the first book downloaded fine. It's just the second one that I'm having the problems with.

Maybe you are looking for