Unsecure socket to secure socket at runtime /help required

I have an IMAP4 server in Java. I want to implement RFC2595 (TLS support) for it.
Now I can listen on a separate secure socket, and use the various examples provided by JSSE to do this.
However, this is discouraged in the RFC. It recommends using the unsecure port 143 and negotiating a secure connection via the STARTTLS command.
The STARTTLS is sent unencrypted. Once the server accepts the STARTTLS and returns an OK response to the client an SSL negotiation is supposed to take place.
My question is how do I achieve this with JSSE.
Any help will be appreciated.
Regards
Vikash

Does SSLSocketFactory.createSocket(Socket,...) work for you? Haven't used it myself, but it's supposed to be for exactly this case.
Good luck!
Grant

Similar Messages

  • My Ipad connects with my hotel wifi, but does not indicate that it is a secure wifi, even though it requires a password to access - no lock symbol, hence no password request, hence no internet access - help.

    My IPad connects with my hotel wifi, but does not indicate that it is a secure wifi, even though it requires a password to access - no lock symbol appears against the wifi network, hence no password request, hence no internet access - help. My collegue who also has an Ipad can access the same wifi with ease, so it must be something to do with the settings on my machine, although checking the two machines, there appears to be no difference in the settings.

    My experience with hotel wifi is that it's an open, and unsecured, connection, but unless you agree to their terms on a launch page, you can't go any further or connect. Sometimes I need to force safari to come up and even make it go to a page, to trigger the auto load of the 'agree to our terms' page.
    Unless your machine is work provided so maybe could be blocked from unsecured net access?

  • HT3702 Am having problem here I upgrade my phone 2weeks ago but if in my iTunes to download a new app it asking for security code can you help pls

    I want to download a app but iTunes keep asking for security code can someone help please

    What problem are you having ? Messages about security codes usually refer to the 3 or 4 digit code on the credit card that you have on your account : http://support.apple.com/kb/HT3541

  • HT5622 I want to change my security information so I went to "Manage your Apple ID" but I could not find "Reset your security information" can someone help me to change my security answers. Thanks in advance

    Hello Everyone,
    I want to change my security information so I went to "Manage your Apple ID" but I could not find "Reset your security information" can someone help me to change my security answers.
    Thanks in advance

    call 1-800-275-2273 (1-800-MY-APPLE)

  • I forgot my security answer can you help me

    i forgot my security answer can you help me

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104535)

  • I forget my security answer can you help me?

    I forget my security answer can you help me?

    Use this Link  >  Apple  Support  iTunes Store  Contact

  • HT201303 im forget my question security how can u help me please

    im forget my question security how can you help me please

    Click here for information. If you can't get the answers emailed to you for some reason(the email may take a few hours to arrive), contact the iTunes Store staff via the link in that article.
    (86063)

  • HT5699 Im from another country and ive lost the answers to my security questions. Help required

    Hi
    Im from another country and ive lost the answers to my security questions. Help required
    Thanks

    You need to contact Apple, either as described in that article or by filling out and submitting this form.
    (90034)

  • Where is the ARH (AIR Runtime Helper) utility?

    Hello,
    AIR Runtime redistributable documentation mentions the ARH (AIR Runtime Helper) which is a tool that can detect which version of the AIR runtime and which version of my app is installed on the user's machine. However I cannot find this utility anywhere - it's not avaiable on the Run-time redistribution page or AIR SDK page.
    Where this utility is supposed to be?
    Thank you,
    Anatoly

    Hi Anatoly,
    I could not find the download link for ARH either, so I used the email address in the Adobe Software Distribution Request approval email, which is: [email protected]
    I got a response from Rob Christensen that they can be found here:
    Mac: http://airdownload.adobe.com/air/distribution/latest/mac/arh
    Win: http://airdownload.adobe.com/air/distribution/latest/win/arh.exe
    Linux: http://airdownload.adobe.com/air/distribution/latest/lin/arh
    Cheers,
    -Julie

  • I am looking for 10.3.9 user[s] with all Security updates applied to Help

    Hello All,
    I am looking for 10.3.9 user, with all Security updates applied to help me please.
    Please let me know if these two sites:Free webspace <ahref="http://www.audiomidi.com/classroom/cedge/cutting_edge061003.cfm">Audiom idi Generate these errors, below for you in Console under username:
    2006-06-14 10:50:52.123 Safari[359] GIF decompressor: GIF image ran out of compressed data at offset 0x21 ( true for Shira as well as Safari )
    The site[s] have validated poorly Wc3 Validation Failed
    However,I discovered that my Pbook with Tiger 10.4.6 doesn't get these errors logged, leading me & my Helper to me wonder if it is just my Fp 10.3.9 or not.
    As long as it isnot just my machine w/ Panther that produces the gif error messages i would know the question I have posted in Safari GIF image ran out of compressed data at offset.. is solved, however someone with 10.3.9 would have to let me know.
    I would be very appreciative of your assistance.
    Thank you for your time.
    Eme;~{)

    Hello there, Claas Hanken,
    Thank you very much for your quick response & help in solving my question. I appreciate it ~
    Cheers,
    Eme:~{)
    edited by: Eme

  • HT5312 i have a locked apple id as i don't know my security answers, can you help me?

    i have a locked apple id as i don't know my security answers, can you help me?

    You need to ask Apple to reset your security questions; ways of doing so include clicking here and picking a method for your country, and filling out and submitting this form.
    (96451)

  • I don't remember my security questions and I tried guessing them and now I can't buy anything for 8 hours please fix this so I can download stuff and I don't remember any of my security questions. Please help me out as soon as possible

    I don't remember my security questions and I tried guessing them and now I can't buy anything for 8 hours please fix this so I can download stuff and I don't remember any of my security questions. Please help me out as soon as possible

    Username188 wrote:
    I don't remember my security questions and I tried guessing them and now I can't buy anything for 8 hours please fix this so I can download stuff and I don't remember any of my security questions. Please help me out as soon as possible
    Go to https://getsupport.apple.com ; click 'See all products and services', then 'More Products and Services, then 'Apple ID', then 'Other Apple ID Topics' then 'Forgotten Apple ID security questions'.

  • "hi i forgot my security questions ansewers plesas help how recover man answers "

    "hi
    i forgot my security questions ansewers
    plesas help how recover man answers

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (99272)

  • Im in libya and i forgot my security question answers pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeease help fast

    im in libya and i forgot my security question answers pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeease help fast

    How to reset your Apple ID security questions.
    Go to appleid.apple.com, click on the blue button that says 'Manage Your Apple ID'.
    Log in with your Apple ID and password. (If you have forgotten your Apple ID password, go to iforgot.apple.com first to reset your password with a password recovery email)
    Go to the Password & Security section on the left side, and click on the link underneath the security questions that says 'Forgot your answers? Send reset security info email to [email]'.  This will generate an automated e-mail that will allow you to reset your security questions.
    If that doesn't work, or  there is no rescue email link available, then click on 'Temporary Support PIN' that is in the bottom left side, and generate a 4-digit PIN for the Apple Account Security Advisor you will be contacting later.
    Next, go to https://getsupport.apple.com
    (If you see a message that says 'There are no products registered to this Apple ID, simply click on 'See all products and services')
    Choose 'More Products & Services', then 'Apple ID'.
    A new page will open.
    Choose 'Other Apple ID Topics', then 'Forgotten Apple ID Security Questions'.
    Click the blue 'Continue' button.
    Select the contact option that suits your needs best.

  • HT5622 i cant find where its says reset you security question? please help thanks

    i cant find where its says reset you security question? please help thanks

    The Three Best Alternatives for Security Questions and Rescue Mail
         1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
         2.  Call Apple Support in your country: Customer Service: Contact Apple support.
         3.  Rescue email address and how to reset Apple ID security questions.
    A substitute for using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

Maybe you are looking for

  • Outgoing mail to friends sometimes goes to Junk folder when I use a link in

    Some of my emails end up in friends Junk folder. My signature has a link to my site, and that might be the reason. Is there a way to keep the link in the signature?

  • SC Workflow: Runtime Actual Approval determination

    Hi all, I want to know who approved the Shopping Cart (SC) in runtime within the BADI so that comparing his Approval Limit with the cost of SC I can decide whether to skip or go for next approval levels. Please help how to find it out. I have checked

  • XML as datasource in GUI components framework

    Hi all, I'm looking for a framework to use XML data as datasouce to GUI components like Swing ones. I've investigated SwingLabs but in it XML databinding namely is under process now. Can anyone suggest something on the subject? WBR, Max

  • How to deactivate the project lock functionality

    I am trying configuration from solution manager to development syatem. After performing the nessary configuration and saving it in a change request it give a message "Create an RFC connection to the Solution Manager system, or deactivate the project

  • Sub-sub query referencing outside column

    The following SQL statement executes: select ci.name, ci.customer_id KeyMed_Ship_to, select cnp from select co.customer_no_pay cnp, count(co.customer_no_pay) ccnp from ifsapp.customer_order co where co.contract like 'OIA%' and co.customer_no='???????