Are there any way to know TLS alert (certificate_expired) from client?

Hello folks,
It's first time for me to implement TLS server with Java, and need your suggestion about TLS alert protocol.
RFC2256 defines TLS alert, for example, for "certificate_expired".
I could not find description about TLS alert in JSSE document, so I wrote simple TLS server and client and experiment with expired server certificate.
On client side, SSLSocket throw "SSLPeerUnverifiedException: peer not authenticated" at connect.
Howerver, my server doesn't throw any exception on accept.
Question:
1. Does SSLSocket(client) send TLS alert (certificate_expired) to server on above situation?
2. Are there anyway to detect TLS alert on JSSE server application?
Best regards,

Thanks.
My server set socket timeout after accept, and then setSoTimeout was failed beucase that the peer socket had been shutdowned.
So I comment it out and read the socket just after accept.
Now the server code throws:
javax.net.ssl.SSLException: Connection has been shutdown:
javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
So the TLS stack (may) received certificate_unknown alert.
But I wonder why JSSE stack on client side "certificate_unknown" alert, rather than "certificate_expired".
According to RFC,
certificate_expired
       A certificate has expired or is not currently valid.
certificate_unknown
       Some other (unspecified) issue arose in processing the
       certificate, rendering it unacceptable.

Similar Messages

  • Is there any way to know the T-code from the screen?

    Hi friemds,
    it s a general question. but I found relavant for posting here.
    I saw our group friens giving some T-codes for spro functions (eg: SNRO, M/06), bbut how to know the transaction from path. i.e. If I go to condition types screen, there I could not see any transaction. is there any way to know the T-code from the screen?

    Hi,
    Listed here are the various ways you can find the list of transaction codes and their usage:
    Use transaction SE11 - ABAP Dictionary:
    Fill in the Database table name and click the Display button.
    - TSTC   table will contain all the Tcodes and
    - TSTCT table will contain all the Tcodes with Texts.
    Once you entered the screen, click in Top Menu - Utilities - Table contents - Display
    If you want to display all the transaction code (total - 57,048) you have to change the Fields: Maximum number of hits to 99999 (default 500).
    or
    Simply goto transaction SM01, although this tcode is to Lock/Unlock any transaction code, you can also view all the tcode available in the R/3 system from here.
    or
    Goto transaction SE93
    There are two ways where you can find the list of transaction codes in SE93.
    Method 1:
    You must be familiar with the starting characters strings for each of the R/3 application modules.
    Assuming you know that most Materials Management transaction codes start with MM.
    In the Fields: Transaction code, type in MM* and press the function key F4
    The list of transaction code starting with MM will be displayed.
    Method 2:
    On the Top Menu, click Utilities - Find - Execute and the first 500 transaction will be display.
    If want to display all the tcodes, make sure you remembered to change the Fields: Maximum no. of hits right at the bottom of the screen.
    I know a particular T Code and can enter and work on it.  How do I know what is the menu path for that T Code?
    Enter Search_SAP_Menu in the command box and when the pop box appears enter, the Tcode and it will give the nodes and menu path. 
    This is helpful only in case of SAP Menu not in case of SPRO - ie IMG.....
    Reward if Helpful,
    Regards,
    Archit.

  • Is there any way to know data is read from tape and written to disk

    is there any way to know data is read from tape and written to disk

    784786 wrote:
    Just asked because I am doing restoration, I see files read from tape and then restored, but can't find them physically there.
    Is there any way I can find it.What kind of restoration? What kind of files?
    The usual "no information" question is of the form "My car won't start. Tell me how to fix it"
    Yours is a bit different - "I tried to fix my car. Tell me how to know it's fixed".

  • Is there any way to know how much time swing client is on open state?

    Is there any way to know how much time swing client is on open state? My requirement is to show a message some time after the swing client open i.e., 4-5 hours.

    You could also consider using javax.swing.Timer and java.awt.event.ActionListener (or javax.swing.Action) which takes care of running the actionPerformed code on the EDT.
    db

  • Is there any way to know when an app is going to be discontinued?

    I purchased an app around eight months ago for $13. I forgot about it until I was reloading apps onto my new IPad. When I went to find it, it was no longer in the app store at all. I contacted the support people who told me that since it was "so long ago" there was no recourse.  So does that mean that any time you purchase an app it could disappear at any moment? Is there any way to know in advance that this will happen?  Never mind that it stinks to spend that amount of money and then have nothing to look back at.
    Additionally, I have had trouble reloading apps that I have paid for as an "in app purchase".  What is the deal with that?  Is that information not stored like buying an app outright?
    Thanks
    DTC

    Apple constantly reminds folks to backup their content. Apple warns folks all of the times that content may not always be available in the iTunes or Mac App Stores and most folks ignore the warnings or cannot be bothered to read them. No, unless the developer warns you that they are with drawing an app from one of the stores, there is no way to know in advance that an app may no longer be available.
    http://support.apple.com/kb/ht4009

  • Is there any way to know that status of DEFINE variable?

    Hi,
    I have a list of scripts that is executed to create my baseline database. At the beginning of the script execution, we have a SET DEFINE OFF and at the end we put SET DEFINE ON. During one of the scripts, we deliberately SET DEFINE ON and we forgot to SET DEFINE OFF at the end of the script. Consequently, the following scripts started failing without error notification because they contained '&' in the INSERT query. I have the following queries:
    1. Is there any way to know the status of the DEFINE variable at the beginning of the script?
    2. Since the oracle gives a user interrupted error, the script execution process does not terminate with error. Instead, it continues executing the next scripts. Is there a general way to capture such errors and terminate the script execution. We already have WHENEVER SQLERROR and WHENEVER OSERROR in our script execution process.
    Regards
    Kunal

    Hi, Kunai,
    Welcome to the forum!
    953495 wrote:
    Hi,
    I have a list of scripts that is executed to create my baseline database. At the beginning of the script execution, we have a SET DEFINE OFF and at the end we put SET DEFINE ON. During one of the scripts, we deliberately SET DEFINE ON and we forgot to SET DEFINE OFF at the end of the script. Consequently, the following scripts started failing without error notification because they contained '&' in the INSERT query. I have the following queries:
    1. Is there any way to know the status of the DEFINE variable at the beginning of the script?Whether it's at the beginning of a script, later in the script, or not in a script at all, the SQL*Plus command
    SHOW DEFINEtells you if DEFINE is ON or OFF.
    If DEFINE is ON, it will produce something like:
    define "&" (hex 26)If DEFINE is OFF, it will produce
    define OFF
    2. Since the oracle gives a user interrupted error, the script execution process does not terminate with error. Instead, it continues executing the next scripts. Is there a general way to capture such errors and terminate the script execution. We already have WHENEVER SQLERROR and WHENEVER OSERROR in our script execution process.Do you really need to capture those errors? Why not just prevent them? It sounds like you want to make sure DEFINE is OFF at a certain point. To do that, just say
    SET  DEFINE  OFFRegardless of whether DEFINE was ON or OFF before you issue that command, you can be sure it will be OFF after that.
    I hope this answers your question.
    If not, post a complete test script (or set of scripts) that people can run to re-create the problem and test their ideas.
    Point out where the scripts you post are not doing what you want, and describe, with specific examples, what you want it to do in those places.

  • Is there any way to know execution time of a  c program on Xcode

    is there any way to know execution time of a  c program on Xcode ?

    If it is a command line tool and you just what the total time do as tony wrote,
    If you need to run it from Xcode or are looking for more detail you can use the Instruments package. Select Product->Profile then select Time Profiler.

  • Hi is there any way of knowing what location my find my phone was turned off or last known location thnks

    hi is there any way of knowing where my find my phone was turned off or its last location thnks

    No. Apple can do nothing. For the future there are apps that will periodically email you the device's location (if connected to internet)

  • Are there any ways to get sequence number other than getting it for each re

    are there any ways to get sequence number other than getting it for each record

    CACHE is the number of values Oracle stores in memory. So the first call to NEXTVAL Oracle grabs x numbers; subsequent calls to NEXTVAL are served from memory until they're all gone and them another bunch is grabbed. The attached sql*plus output demonstrates this behaviour.
    Note that normally unused numbers in the cache are returned to the data dictionary but in exceptional circumstances (DB crash) they may be lost.
    Cheers, APC
    SQL> create sequence seq cache 3
      2  /
    Sequence created.
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              1
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             1
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             2
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             3
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             4
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              7
    SQL>

  • Are there any ways to make sure FCPX saves the project before quitting?

    The other day when I was working on a project, Final Cut Pro did not save any changes I made for the last 3 hours. I lost all of my work. I understand that FCP is supposed to autosave  projects, but it didn't. Are there any ways to make sure that it saves before quitting? I am currently running the trial version 10.0.8, and I plan to upgrade to the full version, soon, provided there aren't too many bugs.

    It turns out it was a corrupted project. All other projects autosave before quitting, but that one always displays the same last modified time. I solved it by creating a brand new project.

  • There any way to know where my ipad, because it was stolen? and do not use iCloud? besides not remember if you have installed any applications to track it?

    there any way to know where my ipad, because it was stolen? and do not use iCloud? besides not remember if you have installed any applications to track it?

    If you did not set up Find My iPad, then there is no way to track it. Contact the police and change any passwords for any online accounts you may have used from your iPad (the iTunes Store, for instance). 
    Regards.

  • ARE THERE ANY WAYS BY WHICH I CAN FIND THE Appln Servlet Container Memory

    ARE THERE ANY WAYS BY WHICH I CAN FIND THE Appln Servlet Container Memory .

    You can check out Tomcat memory usage using Tomcat Manger
    and clicking server status.
    It gives the information like this
    Free memory: 489.80 MB Total memory: 508.12 MB Max memory: 1016.12 MB
    For specific application stats, i think there are some profilers which u have to search in google.

  • Are there any way to recover the deleted images form iPhone 4

    hello guy's
    are there any way to recover the deleted images form iPhone 4
    note : i haven't make any copy of the photo in my pc so i relay need for them
    plz help

    The Camera Roll is for temporary storage as with any other digital camera. Although photos in the Camera Roll are included with your iPhone's backup which is updated by iTunes as the first step during the iTunes sync process, photos in the Camera Roll can and should be imported by your computer ASAP. If you didn't sync your iPhone with iTunes since these photos were captured by your iPhone and the photos in the Camera Roll weren't imported by your computer, the photos are gone.
    Depending on how wealthy you are, you can contact a data recovery service to see if they can recover deleted photos from an iPhone's flash drive, but you will pay an arm and a leg for this. Such a data recovery service is not cheap and with no guarantee the data will be recoverable.

  • Are there any way to recover the deleted images form iPhone4

    hello guy's
    are there any way to recover the deleted images form iPhone 4
    note : i haven't make any copy of the photo in my pc so i relay need for them
    plz help

    What happened that you lost them?
    If you have synced recently you could restore the iPhone and it will restore the camera roll to it's state at the time of that sync.

  • Is there any way to know when (and/or whether) a particular tv season will be available for purchase on itunes.  i'm particularly interested in the 2nd season of "homeland," the 5th season of "damages" and the 7th season of "dexter."  thanks.

    is there any way to know when (and/or whether) a particular tv season will be available for purchase on itunes.  i'm particularly interested in:
         the 2nd season of "homeland,"
         the 5th season of "damages"
         the 7th season of "dexter."
    thanks.

    Thanks. But the disc inspector only appears to let me change things like where the title menu button takes you, not detailed user operations. I have pretty much given up on this being anything other than a giant hassle, but if anybody knows whether a script could do this, I would be eternally grateful.

Maybe you are looking for

  • BI7.3 -- BO4.0 - Authorization issue in Webi

    Hello, Our Queries with authorization variables work fine in BW (RSRT/BEX), and work with Analysis. But when we use Webi, our authorization restrictions doesn't work. (FYI In Bex Queries we use authorization variables on every infoObjetcs authorizati

  • How to Display the Chief Name in the list?

    Hi Folks, In a HR report, i wanted to display some info in Basic List(pernr,nachn,varna etc) But in secondary list i wanted to display (chief Name). SO how we are gonna get?? plz help me out.. Thanks, NKumar

  • Change keyboard language by java program

    I have done internationalization successfully in my java web application. but for insert input i always need to select language of keyboard manualy by control panel's . have any one java program to select keyboard language programatically.

  • Slow mac after mavericks update, slow mac after mavericks update

    Could some one help me to get my macbook working propperly again, it is so slow after installing Mavericks. I'm not a comp. nerd, so please soemone be so kind as to explain what I could do best. Thanx in advance! Hardware Information:           MacBo

  • Percent preloader for video flv's?

    How do you code a preloader for an flv video that has a play head that starts as the preloader is running then the video starts playing? like on the following site in their work section: http://www.natl.tv/ thx