Sahi automation tool issue - java

I am working with the sahi web automation tool.Recently i am facing one issue. i am testing https web site,during the ssl certificate acceptance process where install certificate button is not coming.if i add the respective site in trusted sites list then the install certificate button is coming.If we install the certificate , at the playback time it is getting completely stucked. Though it is a pure sahi issue still if any one can put some possible solutionn for that.it will be really helpful.
Thanks in dvance
Qrious13

Related

Self signed certificate inside local network for development

I'm working with a liferay application that is hosted on a machine at 192.168.1.50:8443 with a self signed certificate (keystore was added to tomcat).
I now want to connect the API to an android app. This connection works in production, but I can't make it work in my local environment, even after accepting the certificate in chrome, and installing it to the android device, it is detected but gives me this error:
SSLPeerUnverifiedException: Hostname 192.168.1.50 not verified
But then it prints out the certificate being used and shows CN:192.168.1.50 and every parameter exactly as I set it. Can anyone give me some pointers of where to go from here? I have already tried everything I can find including injecting customized socket factories, hostname verifiers and SSL contexts.
Any help is appreciated, even if it is a way to trust all certificates I'll take it, I don't care about security, I just need this for development.

The URI is not accessible when creating remote URL connection - Oracle MAF

We have recently needed to change our SSL certificate on our server. Our consuming application has suddenly stopped working. I had presumed this was to do with Java's cacerts, and modified the program to import the new certificate to each client, the problem was not resolved.
When the application attempts to load the remote view (shown below) on the server, it simply loads a white page. I have tried loading the page through http:// and it seems to function, however the rest of the application (including the API) requires https, and subsequent calls to the API fail (images loaded through https are showing as broken within the app).
The website is functional, and when I access URL's being provided to the app, through my desktop browser they load without issue. The app is also functional when I run it in Debug mode, these issues only occur when I use the "Run" build mode.
I have tried creating a blank MAF application, hoping it was some caching issue, however this new app also cannot load the remote URI. I have done a clean build and have tested other remote URI's (they work). I feel as if there is an issue with Java somehow not accepting the new certificate. The first time I tried to load the website within Eclipse's browser, an error displayed along the lines of "certificate revocation information". I didn't pay much attention to this error and it provided the option to install the new certificate, after which the page loaded within eclipse's browser.
In Jdeveloper there is an option of Disabling the Application Transport Security as shown in the image.
Could you try disabling in your eclipse too, Kindly refer this doc https://wiki.eclipse.org/Jetty/Howto/Configure_SSL, this might do a little help :)
The issue seems to be due to the changed SSL certificate on your server.
Short answer:
There was no chain installed, I installed the provided ca-bundle file and updated the httpd.conf file to reflect the chain location and the app now works.
Long answer:
When our server dev installed the new certificate, he neglected to install the ca-bundle (certificate chain) provided by the CA. The site was working in a browser, I can only assume, because it has a more complete list of trusted CA's built in. My best guess is that MAF requires the chain to be installed and was failing some security test, or the chrome webview it uses did not have this CA on the trusted list.

IE certificate issue in Weblogic server application

Deployed the project in weblogic server 10.3 in local. The application works fine in Firefox but in IE says error
There is a problem with this website's security certificate
after click the login.
Used J_Security_Check for login.
even clicked continue this web site also not help
I am using the default certificates that come with weblogic installation. I have not generated any private keys or certificates.
I am new to the web logic server.
Please let me know we need to do any configurations in Web logic server to work in IE
or how to solve the issue.
Method-1 Install the certificate
1. In Windows Internet Explorer, click Continue to this website (not recommended).
2. A red Address Bar and a certificate warning appear.
3. Click the Certificate Error button to open the information window.
4. Click View Certificates, and then click Install Certificate.
5. On the warning message that appears, click Yes to install the certificate.
Method-2 Add website to Security zone
Check this : Add sites to security zone
Method-3 Disable certificate check.
1. To clear the certificate error, go to Tools --> Internet Options from the menu.
2. Click on the Advanced tab and scroll down to the security section. Clear the boxes for: "Check for publisher's certificate revocation" and "Check for server certificate revocation".
3. Click Apply and Ok.
4. Attempt to reload the page by clicking the Refresh button at the end of the address bar or by pressing the F5 key. Your page should now load as expected.
Personally i don't recommend Method-3. If you are facing the issue in development environment, i suggest you ignore it :)

Sign applet and deploy it in intranet

i wrote a web application which is used in our intranet. I alswo wrote a small Java Applet to integrate with our windows desktops (opening applications and files). Of course i get a security warning everytime i access my web application.
I've read on stackoverflow that it should be possible, to sign my applet and roll out the certificate to all my clients (Windows XP and Windows 7) to get rid of the securitywarning.
Is there a tutorial how to do that? Can i do that without purchasing a expensive certificate because i'm only using this application in my intranet?
Thx for any information and best regards!
I found the solution here: http://wikigu.blogspot.co.at/2011/06/signing-java-applet-with-your-own-ca.html
The last step is to install the generated crt (in the example it's the "server.crt") file into the Trusted Publishers certificate store.
Edit: i just realized that it is just working in Internet Explorer (applet is executed without any warning or dialogue) but not in Firefox. Firefox still shows a security warning. Does anybody know how to get rid of the warning in Firefox?

JApplet not connecting to internet issue - How to make trusted?

I have an application which I'm using as a JApplet. It accesses the internet, but I've found the issue why it's not working is because it apparently is not trusted.
How can I go about making the application trusted :)
The only way to make an applet trusted, is to sign all jars.
If you do not have an official certificate, you can create your own which the user then needs to accept.
Use "keytool" in the JDK for these operations.

Categories