Applets :: JRE Is Rejecting Website Certificate Even Though IE Recognize It

Mar 19, 2014

When our applet loads on our HTTPS website, the JRE is rejecting the website certificate, saying it does not recognize the Certificate Authority (which is Thawte). Internet Explorer is happy with the certificate.

With tracing turned on, I can verify the JRE is checking the certificate authorities of IE, but for some reason rejects all of them. The trace shows this:

security: Certificate has failed the verification with the Internet Explorer ROOT certificates
security: Invalid certificate from HTTPS server

We've tested several versions of JRE 7 and the latest version of JRE 8. All of them reject the certificate authority. This happens on various versions of Windows and Internet Explorer.

Please note that I'm not referring to the certificate used to sign the applet. The JRE is happy with that certificate.

What can I do to further investigate this issue?

View Replies


ADVERTISEMENT

Applets :: Unable To Ensure Certificate Used To Identify Application Has Not Been Revoked

Nov 27, 2013

I have a signed Jar file which will run with the all-permission and I am getting a warning message in MAC with Java7u45.

"Unable to ensure the certificate used to identify this application has not been revoked "

For more detail, look in the attachment

manifest.mf properties:
Trusted-Library: true
Permissions: all-permissions
Application-Name: My Test App
Codebase: *

How can I resolve this.

View Replies View Related

Applets :: Signing Jar Files For A Website?

Jul 17, 2014

I am currently trying to update a few java applets for a website. As of right now, the applets are automatically blocked on all computers when they are accessed because the newest updates for Java have caused them to be blocked. I have determined that the solution to this is to resign the .jar files that are used to run the application with a new certificate.

I requested and received a certificate (in pkcs 12 format, a .p12 file), imported it into the computer, and used it to sign the .jar files. However, I have been getting an error after signing the .jar files stating that the full certificate chain of the code signing certificate is not valid.

I tried to check the path of the certificate using a method he recommended (using OpenSSL) but didn't really find anything of use.

View Replies View Related

JRE :: Rejecting Attempt To Specify Unsupported Characters In Command-line Argument

Oct 30, 2014

We are testing the newest release of JRE 1.6.0_85 (x86).  We are running into an issue when Java launches through IE 10.  We are seeing a command prompt window with the following message as soon as Java launches in IE 10:
 
Rejecting attempt to specify unsupported characters in command-line argument: -D java.security.manager
 
The window is labeled: C:Program Files (x86))Javajre6binjp2launcher.exe
 
The application using Java does launch and run correctly, but the command prompt window stays until the application is closed and Java is stopped.
 
If we add the URL for the website using java to our trusted sites in the local intranet zone and turn off protected mode for that zone, then the command prompt window does not display.  This does not happen with the previous version of JRE (1.6.0_81).  What has changed in this newest version?  We do not want to turn off protected mode.

View Replies View Related

Netbeans IDE 7.4 Does Not Recognize Swing Apps

Jan 9, 2014

my IDE doesn't seem to recognize that my program is a Swing app.I get the following error message when I run the app: "jtabledemo.JTableDemo class wasn't found in JTableDemo project."It compiles successfully though.Here is the code verbatim:

package jtableDemo;
// Demonstrate JTable.
import java.awt.*;
import javax.swing.*;
/*
<applet code="JTableDemo" width=400 height=200>

[code]....

View Replies View Related

JRE :: How To Find Certificate Used To Sign App

May 11, 2015

There's a site that uses DBsign UWS to validate personal certificates on a smart card.  I wound up breaking that functionality by moving the default Java truststore so I could create a new one with just root/intermediate CAs that I trust (I have no desire to allow apps signed in China, Russia, Turkey, and countries spelled with heiroglyphs).  Now, my browser believes the UWS is self-signed and rfuses to run it.  I need to find the certificate used to sign that app to see which cert(s) signed it, so I can add them back to the truststore.  How can I find that?

View Replies View Related

Client Class - Cannot Get Total Price To Recognize Surcharge

Apr 26, 2015

I am almost finished with my code. The only hangup I am having is that in my client class, I can't get the total price to recognize a surcharge.

This is my output:
-------------------------------------------------
Your order consists of:

coffee, type mocha, size large, cost: $5.8
tea, flavor earl grey, size medium, cost: $3.6

The total cost of your order is: $8.4
----------------------------------------------------
Notice that the total should be $9.4, rather than $8.4. It is odd because I was able to add a surcharge to my coffee(50 cents), and it does in fact recognize it when calculating the price of the coffee. So why won't my totalPrice in the client class recognize it?

Here is my Client class:

public class CoffeeShop {
public static void main(String[] args)
//One coffee
Coffee coffee = new Coffee(16,"mocha");
coffee.set_price_per_oz(coffee.size);

[Code] ....

View Replies View Related

Eclipse Does Not Recognize Default Method Keyword And Lambda Expression

Jun 2, 2014

I have this very annoying issue with Eclipse (I have the latest version installed). For some reason, every time I use the "default" keyword in an interface, it gives me an error similar to "Syntax error on token default",  I deleted the "default" keyword, the error is gone. The same thing happens with "Lambda expression as well", say I have this object like this :

Actions myActions = () -> {System.out.print("Blah blah blah");};   ,

Eclipse also displays the error message similar to "Method body expected after (), delete '->' ". I checked the Java version I have, it is the latest one also ....

View Replies View Related

I/O Streams :: Read Certificate In Token Usb - Utilizing Java?

Oct 14, 2014

I am developing a program that reads a digital certificate in a USB token, but can not cause the program to access the token.

View Replies View Related

JRE :: Java Certificate Revocation List / OCSP Performance

Dec 23, 2013

As the JRE environments and usage of applets has become more and more secure in through the evolution of enhancements to the JRE we have noticed a performance degradation in usage of these applets and launching of them.
 
As our customers are in the business to business environment they utilize our applets that are delivered from the server to the client.  We are looking at ways to reduce the time to validate that the certificates are still valid.  we are looking for ways to provide a means for our customers to validate against a CRL on our server or to cache the the checks against the OCSP so that not each and every client accessing our server needs to go out to the third party sites to get the checks completed.
 
Is there a means to store this information on our server and have the JRE validate against that system rather than the normal OSCP...

View Replies View Related

JRE :: Java Applications Certificate Check With Password Protected Proxy

Jul 29, 2014

I have a problem with several java applications. When I start them Java wants to connect to the certificate authority, to check if the certificate is still valid and not on a blacklist.

The problem is: my whole internet is behind a password protected proxy. If I open my browser i get a windows with username and password. I enter it and internet in the browser works. But for Java it isn't working, because I see no point, where I can enter the password and username for the proxy. I can enter the proxy ip and port in the java settings, but not the password and username. So I get a error screen from java, telling me, that java could not connect. I can disable the check in the java settings, but I don't wont that.
 
Is there a way to tell java, that java uses my proxy with my password and username? I already googled this problem and found nothing except tutorials for connecting with proxy in the java code. But these applications are not from me, I can't change the code ...

View Replies View Related

Applets :: SecurityException When Using Applets

Dec 26, 2013

I am new to applets, and my manifest file is:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.3
Permissions: all-permissions
Created-By: 1.6.0-internal (Sun Microsystems Inc.)

Name: com/myPackage/test/client/TaskApplet.class
SHA1-Digest: pLmraui35IkgfAq+v3WGj1LwCYQ=

The error I get is as follows...When the page is loaded I get the following error: java.lang.SecurityException: class "com.myPackage. test.client. TaskApplet" does not match trust level of other classes in the same package

View Replies View Related

Why Command Prompt Does Not Recognize Java As A Command

Jul 22, 2014

I am trying to execute a program from the command prompt. I type java -jar zuul.jar (zuul is the name of my project) and I get a message that java is not recognized as an internal or external command. What do I do wrong?

View Replies View Related

Servlets :: How To Map Website URL

Nov 25, 2014

I have my mapping as below

<servlet>
<servlet-name>main</servlet-name>
<servlet-class>co.edureka.controllers.MainController</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>main</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>

So that I can map the first request coming say www.xyz.net to my first page , it does the work but some of my css and images is not getting displayed .

So I did as below

<servlet>
<servlet-name>main</servlet-name>
<servlet-class>co.edureka.controllers.MainController</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>main</servlet-name>
<url-pattern>/first</url-pattern>
</servlet-mapping>

By doing this my css and images get displayed and everything works fine.

But the problem is I want to display my first page as user puts the url.

I am putting my jsp pages in WEB-INF/jsps , I am not putting it directly under WEB-CONTENT directory.

View Replies View Related

Add A Website Into One Of JFrame?

Feb 3, 2014

im working on a program, but i have question and its. How can i add a website into one of my "JFrame" i have made?

exampel i want to add google.com website into the fram called V2.

HERE IS MY CODE:

Java Code: package mittprogram;
import java.awt.Color;
import java.awt.Font;

[Code].....

View Replies View Related

JSP :: How To Have Unchanged URL In Website

Jul 28, 2014

Am currently developing a website in JSP. For security reasons I need to have an unchanged URL throughout my website. Is there any way to achieve it?

View Replies View Related

Java Application For PHP Website

Dec 29, 2014

I have a blog hosting service (like Wordpress) written in PHP and MySQL, I'm gonna make Java Application for it (Runs on Windows, Linux and ...).

My Questions:

1. Can I use Connector/J to connect to my website database (MySQL)?

2. Which one is better? 1.Connect to website database, 2.Use Socket programming.

View Replies View Related

How To Read Content From A Website To App

Nov 27, 2014

I am working on a little project to create an App that can read contents from a website and return it back to my app. What protocol to use for that. Just the reading/retrieving content from a website.

View Replies View Related

Logon To Website Using Java?

Feb 10, 2015

Is it possible to use java to log on to a website? I mean,Ii know how to connect to a website and send commands, but I am not sure how to tell the server that i want to login?

And then after you logged in is it possible to then do something? like, if you logged in to gmail.com you would be able to see your emails?

View Replies View Related

App Works Locally But Not From Website

Feb 9, 2014

I have a Java application that was built by a third party and my task is to embed this in a web site. To do so I got an HTML snippet, a .JAR and da .DAT file that seems to be called by the app. I tested this locally on my machine and it works ok. After uploading to the web server I get an error message

NumberFormatException For input string: "i>>?<html>"(the question mark is actually upside down, the >> is really one character)

At first sight this looks like a common issue with UTF-8 file being delivered when the file itself holds only ANSI characters (or vice versa). So I made sure that the .HTM and the .DAT file are indeed stored in ANSI 8-bit (and not Unicode 16-bit) format. However, this does not solve the issue. The .HTM file itself also holds a ISO 8859-1 directive. The server is set to deliver UTF-8 by default. I cannot change this due to a huge lot of other dependencies.

So I am not sure if my suspicion is right - is it indeed a character set issue? Or is it something else?

The test file is on [URL] ....

View Replies View Related

JSP :: How To Determine Username (Website Visitor)

Jul 17, 2014

Is there a way to tell the login name of a visitor to a website?

View Replies View Related

How To Restrict A Certain Website From Proxy Server

Mar 16, 2015

how would i use it to restrict certain websites to be accessed.

SimpleProxyServer.java
import java.io.*;
import java.net.*;
public class SimpleProxyServer {
public static void main(String[] args) throws IOException {
try {
String host = "your Proxy Server";

[code]....

View Replies View Related

Viewing Website File Tree

Apr 25, 2014

This is probably more of a web-based question. I have a basic web crawler I wrote with Java (using JSoup) which crawls through our repositories and stuff to locate the paths to certain snapshots and whatnot. It crawls through using the file tree which gets exposed when you try to go to a directory in a URL.

The problem I am having is that some of the directories contain index files, which means the connection to the directory redirects from the file tree to the index file. Any way to prevent that redirection?

View Replies View Related

Website Send Commands Application

May 8, 2014

I have a Java application this application sits on a Dedicated server and gets information about the machine and run commands on the machine.

I need it so that i can run these commands from pressing buttons on a website. For example i press a button to retrieve CPU info, it goes to the app, and the app sends the CPU info back.

I'm fine with the website and app its just the middle bit. How do i get the app to run commands sent from a webpage. Been ratting my brains for a couple weeks now.

View Replies View Related

Code To Download A File From A Website

Dec 3, 2014

I currently have the following code that I use to download a file from a website:

URL website = new URL(imgurl);
ReadableByteChannel rbc = Channels.newChannel(website.openStream());
FileOutputStream fos = new FileOutputStream(dir+""+imageNumber + "." + extension);
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
fos.close();

Usually, the code works very well. But sometimes, the download gets stalled indefinitely. Is there a way to set a time out period for the downloading of this file?

View Replies View Related

Website Interaction Using HTML UNIT

Apr 23, 2015

I am having a difficult time trying to get results from the code below. The purpose is for my program to insert the DHL tracking number in the tracking text box, and then for the program to "click" the search button and get the tracking results.

This is the code:

import com.gargoylesoftware.htmlunit.WebClient;
import java.io.*;
import com.gargoylesoftware.htmlunit.html.HtmlPage;
import com.gargoylesoftware.htmlunit.html.HtmlInput;
import com.gargoylesoftware.htmlunit.html.HtmlSubmitInput;
import java.net.*;
public class DHL {

[Code]...

These are the results I am getting in the console (in red), which look like an error:

Apr 23, 2015 7:55:49 PM com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement addbehavior
WARNING: Unimplemented behavior: #default#userdata
Exception in thread "main" com.gargoylesoftware.htmlunit.ElementNotFoundException: elementName=[*] attributeName=[name] attributeValue=[sbtc]
at com.gargoylesoftware.htmlunit.html.HtmlPage.getElementByName(HtmlPage.java:1747)
at htmlTest.main(htmlTest.java:17)

I just cannot figure it out for the life of me. Also, is there a community that focuses on HTML Unit?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved