vishwamitra hegde

Greenhorn
+ Follow
since Feb 09, 2012
vishwamitra likes ...
Eclipse IDE Tomcat Server Java
Merit badge: grant badges
For More
Silicon City, India
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by vishwamitra hegde

Tim McGuire wrote:I think you have told Firefox to ignore the certificate warning for the second web site. You have a self-signed certificate, right?
Clear the security exception out of Firefox and try it.

With self-signed certificates this redirect will always fail. This is by design. Browsers allow you to bypass this for development purposes and they have different ways of going about this bypass.



Yes I have self signed ceritificate. When I clear exception in Firefox and try, it asked for security confirmation. I have added security exception and it works finee.
Could you please explain me how to add security exception in IE7? Or any other solution to make it work.

Thanks!
11 years ago
Hi,

I have a scenario where I am encrypting and decrypting a string using Cypher by using SecretKey. I am storing SecretKey (AES type) into a keystore (JCEKS type keystore) by using a small java code and retriving that key for encryption and decryption.
But when i try to use key (RSA type) from keystore (JKS type) generated using "keytool" i am getting exception :
java.security.InvalidKeyException: Wrong format: RAW bytes needed
at com.sun.crypto.provider.SunJCE_h.a(DashoA12275)
at com.sun.crypto.provider.AESCipher.engineInit(DashoA12275)
at javax.crypto.Cipher.init(DashoA12275)


The command i have used to generate keystore using keytool : keytool -genkey -alias key3 -keyalg RSA -keystore teststore.jks -storepass tspassword

Please explain me, weather it is possible to use the key generated using keytool for encryption and decryption?
If so please explain me.

Thanks!
12 years ago
I have unchecked. Still it is showing the same message. Before showing that message, it is telling certificate issue. but i have imported certificate into IE.
Hi. I have have two web-applications running on two different servers which are communicating through HTTPS.
I have implemented SSL keystore, certificate and all the necessary arrangements to run secure port.
I am able to view pages securely when i run individually. But when i try to redirect form one application to another application's page through HTTPS, IE7 showing error message "Internet Explorer cannot display the webpage".
Note : It is working finely in Mozilla Firefox.Please help me out resolving this issue.

Thanks!
Hi. I have have two web-applications running on two different servers which are communicating through HTTPS.
I have implemented SSL keystore, certificate and all the necessary arrangements to run secure port.
I am able to view pages securely when i run individually. But when i try to redirect form one application to another application's page through HTTPS, IE7 showing error message "Internet Explorer cannot display the webpage".
Note : It is working finely in Mozilla Firefox.Please help me out resolving this issue.

Thanks!
12 years ago

Jeff Verdegan wrote:

Winston Gutkowski wrote:

Jeff Verdegan wrote:Then you have to encrypt that file. And when it's time to read that file, a human user who knows the decryption key for the file has to enter it.


It's also better if that file isn't called 'password' or 'keystore'.

Winston



Meh. Security through obscurity is overrated.

The real problem, I suspect, is that the OP wants to store a password, say, for a DB or web service, so that his app can run without human intervention. But he's missing the point that if his app can decrypt the "key file", then so can anybody who can read his app's classes and resources. It's turtles all the way down, as they say.



I am not storing a password. Its just a String which i am using to generate message digest, which is sent to another server for user authentication, and I want to store that String in some way that should not be accessible.
12 years ago
Hi,

I have a scenario where i have to store a string (key) in a file securely, and retrive it for creating message digest.
I tried importing the string into a KeyStore. But KeyStore can only store Key objects, and i dont know any way to store String in KeyStore.
Please suggest if there any way to store String in KeyStore or any alternate methods to store String securely in a file.

Thanks!!
12 years ago