Insecure JNLP java_vm_args cannot avoid security alerts even with a signed JNLP

I am using a signed JNLP launch file that is validated against JNLP-INF/APPLICATION_TEMPLATE.JNLP in my main resource JAR (which I know works because if I change the JNLP in an invalid way the Java Plugin JNLP Client complains as expected). The main resource JAR is also properly signed with a real code signing certificate, marked as a Trusted-Library in the Manifest, and has "all-permissions" in the JNLP.
In my JNLP launch file, I have some java_vm_args that are considered insecure. For example, --XX:+PrintGC. Despite the fact that the JNLP is signed, I get two security alerts:
1) A yellow exclamation mark alert which when More Information are examined asserts that the JNLP file is NOT signed.
2) If I accept and run anyway, then I get another alert saying:
"This application is going to perform an insecure operation. Do you want to continue?"
Is there any way to avoid these issues while still being able to specify arbitrary VM arguments for the applet?

Found the answer in your link.  :-)
If the Application-Library-Allowable-Codebase attribute is present and matches the location from which the RIA is started, then a single host is listed in the Location field for the prompt and the option to hide future prompts is provided. If this attribute is present and the files are accessed from a location not included for the attribute, then the RIA is blocked. If this attribute is not present, then multiple hosts that correspond to the locations of the JAR file and the JNLP file or HTML page are listed in the Location field for the prompt. When multiple hosts are shown, the user is not given the option to hide future prompts. Use of this attribute is recommended so the files for the RIA are accessed only from known locations.

Similar Messages

  • Is possible to sign a Captive runtime bundle executable in mac with a mac distribution using codesign (to avoid security Alert)

    Hi, again:
    Is possible to sign a Captive runtime executable (.app) in mac with a mac distribution certificate using codesign (to avoid security Alert)?
    Considering that Flash Builder does not allow you to create an unsigned .app (captive).
    Basically, apparently is imposible to do it, when I try codesign always return a: part of the bundle is sealed.
    Please anyone there can help me to solve this?
    Thank you.

    Hi, again:
    Is possible to sign a Captive runtime executable (.app) in mac with a mac distribution certificate using codesign (to avoid security Alert)?
    Considering that Flash Builder does not allow you to create an unsigned .app (captive).
    Basically, apparently is imposible to do it, when I try codesign always return a: part of the bundle is sealed.
    Please anyone there can help me to solve this?
    Thank you.

  • Cannot resolve symbol error even with class imported

    Hi
    I'm trying to print out a java.version system property but keep getting a
    cannot resolve symbol error
    symbol: class getProperty
    location: class java.lang.System
    I've looked at the API and getProperty() is a method of lang.System
    Can anyone throw any light?
    thanks
    import java.lang.System;
    class PropertiesTest {
        public static void main(String[] args) {
                String v = new System.getProperty("java.version");
                 System.out.println(v);
    }

    Thanks Jos
    It compiles but I now get a runtime error
    Exception in thread "main"
    java.lang.NoClassDefFoundError:PropertiesTest
    What do you reckon is the problem?
    thanks
    java -cp .;<any other directories or jars>
    YourClassNameYou get a NoClassDefFoundError message because the
    JVM (Java Virtual Machine) can't find your class. The
    way to remedy this is to ensure that your class is
    included in the classpath. The example assumes that
    you are in the same directory as the class you're
    trying to run.I know it's a bad habit but I've put this file (PropertiesTest.java) and the compiled class (PropertiesTest.class) both in my bin folder which contains the javac compiler

  • Cannot uninstall CS5 completely even with CS Cleaner tool

    Well... it's been over a week now and still not happy.
    Had some Indesign (CS5.5) issues (would not open program, would not open files) so I tried to completely uninstall and reinstall the software, numerous times with multiple instances of "these programs did not install successfully and may not function properly".
    After prompt advice from the forum, It was suggested I download the Cleaner tool and create a new user profile.  I have done just that and used the Cleaner tool again just to make sure and came up with multiple errors.
    (The log file is below.)
    Should I continue trying to install again now or should I wait and try to clear up the reasons why this failed first?
    Outside of completely wiping the partition and starting from scratch (a company computer), I have no other idea of what I can do to ensure this works as it should.
    I've been "down" for a week and have work piling up.  Thanks!
    [Thu Apr 16 07:34:42 2015] List of products installed on this machine
    [Thu Apr 16 07:34:42 2015] Listing products for cleanup:
    [Thu Apr 16 07:34:42 2015] Please enter the option number of the product you wish to remove; enter (q) to quit ... >>
    [Thu Apr 16 07:34:48 2015] Are you sure you want to clean all the listed products and associated files?
    [Thu Apr 16 07:34:48 2015] Type (y) to confirm and remove or (n) to quit ... >>
    [Thu Apr 16 07:34:52 2015] Please wait for Adobe Creative Cloud Cleaner Tool to finish........
    [Thu Apr 16 07:34:52 2015] :: Cleaning-up left over inventories ::
    [Thu Apr 16 07:34:52 2015] Inventory: 'AdobeApplicationManager-1.0' Type: SelfUpdate, Action: NoDelete
    [Thu Apr 16 07:34:52 2015] Inventory: 'uninstallts', Type: RIBS, Action: Delete
    [Thu Apr 16 07:34:52 2015] Atleast one Non-RIBS Inventory : False, Atleast one AAMRef: False
    [Thu Apr 16 07:34:52 2015] ::Start:: Removing AUM contents
    [Thu Apr 16 07:34:52 2015] Deleting registry root:HKLM key:Software\Microsoft\Windows\CurrentVersion\Run value:AdobeAAMUpdater-1.0
    [Thu Apr 16 07:34:52 2015] Exception during deleting key : (2, 'RegDeleteValue', 'The system cannot find the file specified.')
    [Thu Apr 16 07:34:52 2015] Deleting registry root:HKLM key:Software\Microsoft\Windows\CurrentVersion\Run value:ADOBE_UPDATER_STARTUP_UTILITY
    [Thu Apr 16 07:34:52 2015] Exception during deleting key : (2, 'RegDeleteValue', 'The system cannot find the file specified.')
    [Thu Apr 16 07:34:52 2015] Deleting scheduled task : AdobeAAMUpdater-1.0-Graphics-WS-Anthony Montanarella
    [Thu Apr 16 07:34:52 2015] Executing command: schtasks /delete /TN "AdobeAAMUpdater-1.0-Graphics-WS-Anthony Montanarella" /F
    [Thu Apr 16 07:34:52 2015] ERROR: The system cannot find the file specified.
    [Thu Apr 16 07:34:52 2015] Deleting scheduled task : AdobeUpdater Task-Graphics-WS-Anthony Montanarella
    [Thu Apr 16 07:34:52 2015] Executing command: schtasks /delete /TN "AdobeUpdater Task-Graphics-WS-Anthony Montanarella" /F
    [Thu Apr 16 07:34:52 2015] ERROR: The system cannot find the file specified.
    [Thu Apr 16 07:34:52 2015] ::Finish:: Removing AUM contents
    [Thu Apr 16 07:34:52 2015] ::Start:: Removing OOBE
    [Thu Apr 16 07:34:52 2015] Executing command "taskkill /F /FI "IMAGENAME eq AAM Updates Notifier.exe""
    [Thu Apr 16 07:34:53 2015] INFO: No tasks running with the specified criteria.
    [Thu Apr 16 07:34:57 2015] Warning: Failed to remove file,folder trying again
    [Thu Apr 16 07:34:57 2015] Warning: Failed again to remove file,folder
    [Thu Apr 16 07:34:57 2015] Warning: Failed to remove file,folder trying again
    [Thu Apr 16 07:34:57 2015] Warning: Failed again to remove file,folder
    [Thu Apr 16 07:34:57 2015] ::Finish:: Removing OOBE
    [Thu Apr 16 07:34:57 2015] Removing content of Product : CS5Installer, Version : CS5
    [Thu Apr 16 07:34:57 2015] Deleting file : C:\Program Files (x86)\Common Files\Adobe\caps\pdb.db
    [Thu Apr 16 07:34:57 2015] Deleting file : C:\Program Files (x86)\Common Files\Adobe\caps\Media_db.db
    [Thu Apr 16 07:34:57 2015] Warning: Failed to remove file,folder trying again
    [Thu Apr 16 07:34:57 2015] Warning: Failed again to remove file,folder
    [Thu Apr 16 07:34:57 2015] Warning: Failed to remove file,folder trying again
    [Thu Apr 16 07:34:57 2015] Warning: Failed again to remove file,folder
    [Thu Apr 16 07:34:57 2015] LOG FILE SAVED TO: C:\Users\ANTHON~1\AppData\Local\Temp\Adobe Creative Cloud Cleaner Tool.log
    [Thu Apr 16 07:34:57 2015] Adobe Creative Cloud Cleaner Tool completed successfully
    [Thu Apr 16 07:34:57 2015]
    [Thu Apr 16 07:34:57 2015] *-*-*-*-*-*- ::START:: - SUMMARY OF Warnings -*-*-*-*-*-*
    [Thu Apr 16 07:34:42 2015] Warning: Failed to remove file,folder trying again
    [Thu Apr 16 07:34:42 2015] Warning: Failed again to remove file,folder
    [Thu Apr 16 07:34:42 2015] Warning: Failed to remove file,folder trying again
    [Thu Apr 16 07:34:42 2015] Warning: Failed again to remove file,folder
    [Thu Apr 16 07:34:57 2015] Warning: Failed to remove file,folder trying again
    [Thu Apr 16 07:34:57 2015] Warning: Failed again to remove file,folder
    [Thu Apr 16 07:34:57 2015] Warning: Failed to remove file,folder trying again
    [Thu Apr 16 07:34:57 2015] Warning: Failed again to remove file,folder
    [Thu Apr 16 07:34:57 2015] Warning: Failed to remove file,folder trying again
    [Thu Apr 16 07:34:57 2015] Warning: Failed again to remove file,folder
    [Thu Apr 16 07:34:57 2015] Warning: Failed to remove file,folder trying again
    [Thu Apr 16 07:34:57 2015] Warning: Failed again to remove file,folder
    [Thu Apr 16 07:34:57 2015] *-*-*-*-*-*- :: END :: - SUMMARY OF Warnings -*-*-*-*-*-*
    [Thu Apr 16 07:34:57 2015] ---------------------------------------------------------
    [Thu Apr 16 07:34:57 2015] *=*=*=*=*=*=*=*=* :: End Session :: *=*=*=*=*=*=*=*=*=*=*
    [Thu Apr 16 07:34:57 2015] ---------------------------------------------------------

    Hi,
    The procedure of the Adobe CS Cleaner must be done with an Admin Account on your, or you should Run the Application as Administrator,
    The failed removing file errors, seems like that the files aren´t on the location anymore, you can check if there.
    Regards

  • Cannot delete calendar items, even with delete permission

    Hello,
    we have applied the following GPO Setting on per User basis:
    Store deleted items in owner's mailbox instead of delegate's Mailbox
    As we moved from Lotus Notes to Outlook and  are using some shared Mailbox, this option is a must have for us.
    The negative part: A User that want's to share his calendar with someone else and gives delete permission (for example publishing Editor)
    cannot delete items. If the Users gives "author" permission on his own "deleted items" Folder in his Mailbox, it's working.
    When you know it, it seems logically, but uncomfortable for the user.
    Is there another way to work around the issue, for example set the author automatically when applying delete permission on calendar items, if the mentioned GPO is applied.
    It think this might be a good patch for Outlook :-)

    Hi,
    Just as you mentioned, it is logical and it's the expected behavior. This issue occurs because the Deleted Items folder is not granted permissions when delegates are set in Outlook. There is no way to automatically set the author when applying delete
    permission on calendar items. If it's an unwanted item, we can just hold Shift key and delete the calendar item. This will permanently delete the item without moving it to Deleted Items folder. Or, we have to grant the delegate at least author level permissions
    to the Deleted Items folder of the owner's mailbox in Outlook. See:
    https://support.microsoft.com/en-us/kb/2783247
    Reagrds,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Address Book Opens Automatically and will not close (even with Force Quit)

    The address book automatically opens at times and I cannot close it. Even with a force quit, I cannot close it. It takes up over 80% of CPU cycles when it opens automatically. Any thoughts or suggestions?
    Thanks
    Robby

    This is happening to me too. Has occurred on MBP 17" about six or seven times over the past couple of weeks. Have not been able to replicate it. But recently suspect that it may be related to auto syncing and/or syncing my iPhone 3G.
    Anyone else have an idea?

  • HT1918 I cannot update any apps, my security code is not invalid, but it says it is. Cannot purchase apps or even do free updates?  What to do??

    I cannot update any apps, my security code is not invalid, but it says it is. Cannot purchase apps or even do free updates?  What to do??

    Take a look here:
    http://support.apple.com/kb/TS1646
    If that doesn't help, go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • I still get a firefox security alert that my system affected by numerous virus attack even after I performed a full scan using microsoft security essential. what is the problem?

    I get a firefox security alert that my system affected by numerous virus attack. I performed a full scan using microsoft security essential immediately but same message still pop up after that even though no virus was found during the scan.

    You may be visiting a web site that has been infected or is hosting malware.<br />
    You should never respond unrequested pop-ups that try to persuade you to download and install software.<br />
    Doing that is the way to get malware because no decent company would use such methods to inform you about that.<br />
    You only saw an animation and not a real scan.<br />

  • Even though in my Mac Book settings pop up blocker is on, i am getting lot of pop ups and security alerts from mackeepar on every click i do on the screen. how can i clear that issue?

    i have a mac book 13" 0f 2010, when ever i click on the screen a pop up of google survey, lottery or security alert of mac keeper pops up. i have pop up blocker on in the settings. how to clear is issue. is that a security threat to my system? please help.

    One of the most common pieces of adware that causes MacKeeper pop-ups is Downlite, and if Mark is infected with that, it will prevent him from loading the AdwareMedic website. If that happens, see:
    About the Downlite adware

  • Reader X - Getting Security Alert with a data filled PDF form

    My site uses PDF forms that have their data filled in dynamically by the classic asp code on the site. Before Reader X version, they were filled and displayed without a problem. With Reader X they display the security warning: "Data from this site is blocked to avoid potential security risks....." and the Options button to trust the site. I get this even thoguh it's the same site they are on already and I'm using an SSL cert for all files and I'm also using a direct link to generate the PDF.
    I know the user can just click the options and make the problem go away but many users seem unable to read and or panic when they see the alert.
    Is there a security setting or trust setting I can add or set in my form so that I will not get this security alert??

    No, apart from creating a certified document, but the user would still have to add you as a trusted source. If a document could override this, it would be rather pointless to have it in the first place.

  • Firefox 2.0.0.8 = security alert when calling a Java applet method

    I have a JavaHelp applet that I launch using a method that I called
    from JavaScript when a user clicks on a link.
    A problem I found with Firefox 2.0.0.8 and JRE 1.4 is that when I
    click on the link it will try to display a security alert window, but
    the window appears to freeze up when it is being displayed and hangs
    the browser. For example, I cannot see any of the buttons that should
    be on the security window. Rather the main window is empty. However,
    if my applet exposes a button that the user can directly click, the
    security window displays properly and can be dismissed.
    With the same JavaHelp applet, the link works fine if I use it Firefox
    2.0 and JRE 1.6 or JRE 1.5, and with IE 6.0 and IE 7.0. I uninstalled
    and reinstalled Firefox with JRE 1.4, and I couldn't reproduce the
    problem. However, I'm concerned that this problem may resurface in
    the future.
    Has anyone ever seem a similar problem? And if so, are there any easy
    workarounds?

    >
    I have a JavaHelp applet.. >I suggest you launch it using Java Web Start (JWS).
    Here is a test of a direct launch of the HelpButton JavaHelp applet.
    <http://www.physci.org/jh/test.html#launch>
    It would only take minor changes to the code to make the button entirely redundant, and have the code automatically launch the HelpViewer, once the user clicks the link to the JNLP launch file.
    That 'JavaHelp/JWS' page is my test page for launching JavaHelp in a variety of forms.

  • Remove "flash player security" alert

    Is it possible to avoid
    “flash player security” alert dialog box.
    My project is built in flash 6 but it won’t run under
    flash player 8.
    It gives security alert dialog box, and client asks me to
    remove this dialog box.
    Is it possible to remove it or not?
    Or is there any documentation available on net stating that
    it’s not possible to remove it?:confused

    The answer is inside the same article you quote, page 3:
    "Local-trusted: This sandbox has no restrictions. It offers the
    same open privileges as all local files were given in Flash Player
    7. Any local file may be placed in this sandbox if given
    authorization by the end user. This authorization may come in two
    forms: interactively via the Settings Manager or noninteractively
    via an exectuable installer that creates Flash Player configuration
    files on the user's computer."
    So you might have the user do something which is a lot more
    work than clicking ok in a security alert (I haven't even done it
    myself on my machine).
    Or you might provide an executable that needs to be
    downloaded with at least two more security alerts.
    The situation of course changes if you can deliver that
    executable in a different form, e.g. via a CD-ROM

  • Exchange 2010/Outlook 2010 Security Alert (...there is a problem with the site's security certificate.)

    I've been looking to resolve this issue for a while now and was hoping someone could help me understand my options.
    We have Exchange 2010 & Outlook 2010 in our environment. I've created a SSL cert for our ActiveSync from a reputable CA and unfortunately, as you may not be surprised, we are seeing an alert each time we open Outlook that states:
    "Security Alert; Information you exchange with this site cannot be viewed or changed by others. However, there is a problem with the site's security certificate.
    The name on the security certificate is invalid or does not match the name of the site."
    Of course my internal server name does not match my external server name. So the SSL I had created for use with OWA and ActiveSync is rejected by my internal Outlook clients.
    After doing some research I believe this is related to the Autodiscover service being configured with my internal server name and not my external name. 
    I've found some info about adding New-AutodiscoverVirtualDirectory and Set-ClientAccessServer commands and then found this article that might help.  (Configure
    Outlook Anywhere to Use Multiple SSL Certificates) but nothing is specific to my configuration and I'm concerned about what will happen to my existing configuration if this fails. 
    What happens when you run Set-ClientAccessServer? Does it retain and keep the old server config in place and add a new one or does it wipe it out? Will all of my devices need to be reconfigured?
    Same with New-AutodiscoverVirtualDirectory.  Does this simply add another virtual directory or is it going to overwrite my existing config?
    Then there is the question of whether or not any of this will actually address my issue at all.
    absolutezero273c

    Sorry.
    "[PS] C:\Windows\system32>Set-ClientAccessServer -Identity MailExt -AutoDiscoverServiceInternalUri "https://MailExt
    .contoso.com/autodiscover/autodiscover.xml"
    The operation couldn't be performed because object 'MailExt' couldn't be found on 'DomainController2.contoso.local'.
        + CategoryInfo          : NotSpecified: (0:Int32) [Set-ClientAccessServer], ManagementObjectNotFoundException
        + FullyQualifiedErrorId : 4D980455,Microsoft.Exchange.Management.SystemConfigurationTasks.SetClientAccessServer"...is the error I get.
    I've created the split zones and populated the Forward Lookup Zones as follows:
    CONTOSO.COM
    MailExt(CNAME)MailInt.contoso.local
    _tcp _autodiscover(SRV)MailExt.contoso.com
    CONTOSO.LOCAL
    MailInt(A)192.168.1.10
    MailExt(CNAME)MailInt.contoso.com
    One thing I did notice is that there isn't a _tcp _autodiscover entry for MailInt in my Forward Lookup Zones.  It was recommended that I make that entry for _tcp _autodiscover(SRV)MailExt.contoso.com in another post I read somewhere.
    I believe what I am trying to do is create a new autodiscover object as is shown here:
    I see there is a Get-ClientAccessServer & Set-ClientAccessServer command but I need to add a CAS. Does the Set-ClientAccessServer add or simply modify?
    Or would that require the New-AutodiscoverVirtualDirectory command? I read
    this page that discussed creating new virtual directories but that seemed a little risky without knowing all the ins and outs of how this service functions and to what degree this would affect the existing configuration.
    I was able to use the Set-ClientAccessServer command and change the actual internal autodiscoverUri to https://MailExt.contoso.com/autodiscover/autodiscover.xml but the name still says MailInt and I continue to get the SSL cert warnings because it is looking
    at MailInt.contoso.local.
    absolutezero273c

  • Safari is frozen by a fake security alert, how do I resolve?

    Safari is frozen by a fake security alert.  How do I resolve on my MacBook Air using IOS 8.1.2 
    Error Message:
    "Safari - Alert
    Your Browser has been Locked because of Possible Infections found in your Machine. Due to which your Browser Might be Corrupted because of Suspicious Activity found.
    Major Security Issue
    For Immediate Assistance through our Apple Certified Technicians CALL:
    +1-855-337-8048 (Toll Free)"
    Thank you!

    The following comes from user stevejobsfan0123.
    Occasionally, a browser window may pop up with a scam message. Common pop-ups include a message saying the government has seized your computer and you must pay to have it released (often called "Moneypak"), or a phony message saying that your computer has been infected, and you need to call a tech support number (sometimes claiming to be Apple) to get it resolved. First, understand that these pop-ups are not caused by a virus, and your computer has not been affected. This "hijack" is limited to your web browser. Also understand that these messages are scams, so do not pay any money, call the listed number, or provide any personal information. Most of these scammers, if you actually call the number, will ask you to install software giving them remote control over your computer. Do not do this either. This article will outline the solution to dismiss the pop-up.
    Quit Safari
    Though you will probably have to quit Safari, you can first try closing the tab by pressing Command + W. Sometimes, however, these pop-ups will not go away by attempting to close the tab, nor by clicking "OK" or "Cancel." Furthermore, several menus in the menu bar may become disabled and show in gray, including the option to quit Safari. You will likely have to force quit Safari. To do this, press Command + option + esc, select Safari, and press Force Quit.
    Relaunch Safari
    If you relaunch Safari, the page will reopen. To prevent this from happening, hold down the 'Shift' key while opening Safari. This will prevent windows from the last time Safari was running from reopening.
    This will not work in all cases. The shift key must be held at the right time, and in some cases, even if done correctly, the window reappears. In these circumstances, after force quitting Safari, turn off Wi-Fi or disconnect Ethernet, depending on how you connect to the Internet. Then relaunch Safari normally. It will try to reload the malicious webpage, but without a connection, it won't be able to. Navigate away from that page by entering a different URL, i.e. www.apple.com, and trying to load it. Now you can reconnect to the Internet, and the page you entered will appear rather than the malicious one.
    None of this Worked!
    If pressing Command + W does not work, and force quitting Safari and restarting the application with the Shift key held down does not get rid of the pop-up you will have to reset Safari. Normally, this can be done by launching Safari, then in the menu bar, going to Safari > Reset Safari. However, most pop-ups of this variety will block access to many of the drop-down menus in the menu bar. You will need to locate a file on the computer and move it to the trash. Make sure you quit Safari first (force quit if necessary).
    To start, open Finder. The press Command + Shift + G, or in the menu bar, select Go > Go to Folder. Type the following file path:
    ~/Library/Preferences
    Look for a file named com.apple.Safari.plist, and drag it to the trash. Then restart your Mac. After it reboots, try launching Safari. A new preferences file should have been automatically created, so no more action is required on your part, and the pop-up should now be gone.
    The Source of the Scam
    In addition to the FBI scam, there are a few webpages with bogus technical support pop-ups or "security alerts," claiming you have a virus as described earlier. These webpages include but are not limited to:
    macsecurityissue.com
    helpmetek.com
    applesecurityalert.com
    websternal.net
    newsalert.report-o.com
    mac-system-alerts.com
    geek-techies.com
    system-connect.com
    instants-pc-fix.com
    flasherrordetector.websiteviruscleaner.com
    safaricontact-help.com
    system-logs.info
    customer-help.in

  • How to disable security alert  coming from ssl?

    Hello friends,
    I am developing an internal site for which i am using SSL for the security of the data.
    But i am getting security alert because iam using an IP address or machine short name in the URL to access it.
    Any other way to disable this alert.
    If it is not possible to disable the security alert can any body guide how to achieve security on the network..
    Which means i want a way to encrypt any given data string with the help of java script and the output encrypted string should be given as a input to the java code(servlet) to decrypt the encrypted string to its original form.
    Please any one help me with the code.
    I will be very thankful to you all.
    Thanks.

    While one of SSL's goals is to protect the transmission of data over networks through encryption, another goal is allow client and server applications to verify the integrity of their connections - by verifying that they are connected to whom the software claims to be. The client application (the browser as an example) does this verification by ensuring that the server site you've accessed in the URL, matches the fully qualified domain name (FQDN) in either the SubjectDN or the AlternateSubjectName extension of the digital certificate being used by the web-server to enable SSL. (Servers can also verify client software connections by asking for a client certificate; unfortunately 99.99% of web-sites do not use this little-known feature).
    If the server uses an SSL certificate called "mysecuresite.company.com", and you access the server as "mysecuresite" or with its IP address, you are, essentially, tripping on the very code in the SSL library designed to protect you - by throwing up a security alert about the site you've just accessed, which tells you that the site you've accessed does not match the name in the digital certificate.
    The simplest way to avoid the security alert is to use the FQDN of the web-server when you access the site. There are other complex ways of solving the problem, but the simplest is often the best. Besides, it will help to educate your users with this simple fact about SSL - you never know when this knowledge might be helpful to them.

Maybe you are looking for