NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Is it Possible to Use SSL in a Visual web jsf application

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
omoz4real



Joined: 26 Jan 2009
Posts: 121
Location: United Kingdom

PostPosted: Mon Mar 23, 2009 1:48 pm    Post subject: Is it Possible to Use SSL in a Visual web jsf application Reply with quote

hi john,

thank you very much for the guidance. but i have a step where i am locked up.

http://javaevangelist.blogspot.com/2006_12_01_archive.html , i get stocked on import the files as follows

Import the files as follows:

keytool -import -v -alias cacert -trustcacerts -keystore cacerts.jks -storepass changeit -file root.crt

keytool -import -v -alias cacert -trustcacerts -keystore keystore.jks -storepass changeit -file root.crt

keytool -import -v -alias cacert3 -trustcacerts -keystore cacerts.jks -storepass changeit -file class3.crt

keytool -import -v -alias cacert3 -trustcacerts -keystore keystore.jks -storepass changeit -file class3.crt

when i try to do this on the command prompt of the java development kit bin directory i.e. C:\program Files\java\jdk1.6.0_10\bin> i get these errors

C:\Program Files\Java\jdk1.6.0_10\bin>keytool -import -v -alias cacert -trustcac
erts -keystore cacerts.jks -storepass changeit -file root.crt
keytool error: java.io.FileNotFoundException: root.crt (The system cannot find t
he file specified)
java.io.FileNotFoundException: root.crt (The system cannot find the file specifi
ed)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at sun.security.tools.KeyTool.doCommands(KeyTool.java:803)
at sun.security.tools.KeyTool.run(KeyTool.java:172)
at sun.security.tools.KeyTool.main(KeyTool.java:166)

C:\Program Files\Java\jdk1.6.0_10\bin>

please where i can run the command from or what do i need to do to get the import statement right and get the certificates running.

thanks

--- On Fri, 3/13/09, John Yeary <address-removed> wrote:

Quote:
From: John Yeary <address-removed>
Subject: Re: [nbj2ee] Is it Possible to Use SSL in a Visual web jsf application
To: address-removed
Date: Friday, March 13, 2009, 12:11 AM
I have a tutorial on my blog about how
to setup certificates on GlassFish. You can use SSL with
Visual JSF with no issues.

You may use the self-signed certificates from the GlassFish
installation, but only for testing and development. I prefer
to use a CACert certificate on GlassFish then I am
developing, testing, and deploying on an equal basis.


John

On Thu, Mar 12, 2009 at 4:32 PM,
omoz4real <address-removed>
wrote:

Hi Everyone,







Please I was wondering if it was possible to use SSL in
visual web jsf pages. I am currently developing an
application using visual web jsf and am trying to use SSL in
the application. From what i have read in the SUN JAVA
website, i understand you have to set the transport
guarantee confidential . I have tried this and it works for
a normal web jsp application. I was wondering if it works
too for a visual web jsf application and also if i can still
use the certificate i used on the normal web jsp application
in the visual web jsf application








and also can i use one digital certificate i.e. the one
provided by glassfish for different web applications? and
also can i use my generated digital certificates without
getting it signed by a Certificate Authority and use it in
my visual web jsf? please if yes can anyone guide me on how
to do this or refer to a web page/website where a guidance
is given.








Please if anyone can help i would be very grateful as I am
using this for my final year project in my university.







Thanks .












--
John Yeary
--
http://javaevangelist.blogspot.com

"Far better it is to dare might things, to win
glorious triumphs, even though checkered by failure,


than to take rank with those poor spirits who neither enjoy
much nor suffer much, because they live in the grey

twilight that knows not victory nor defeat." --
Theodore Roosevelt

Back to top
John Yeary
Posted via mailing list.





PostPosted: Wed Apr 01, 2009 1:38 am    Post subject: Is it Possible to Use SSL in a Visual web jsf application Reply with quote

You need to run the command from the Glassfish directory. You would run it in the <GLASSFISH_HOME>/domains/domainXXX/config directory.



On Mon, Mar 23, 2009 at 9:48 AM, omos jigga <address-removed ([email]address-removed[/email])> wrote:
Quote:

hi john,

thank you very much for the guidance. but i have a step where i am locked up.

http://javaevangelist.blogspot.com/2006_12_01_archive.html , i get stocked on import the files as follows

Import the files as follows:

keytool -import -v -alias cacert -trustcacerts -keystore cacerts.jks -storepass changeit -file root.crt

keytool -import -v -alias cacert -trustcacerts -keystore keystore.jks -storepass changeit -file root.crt

keytool -import -v -alias cacert3 -trustcacerts -keystore cacerts.jks -storepass changeit -file class3.crt

keytool -import -v -alias cacert3 -trustcacerts -keystore keystore.jks -storepass changeit -file class3.crt

when i try to do this on the command prompt of the java development kit bin directory i.e. C:\program Files\java\jdk1.6.0_10\bin> i get these errors

C:\Program Files\Java\jdk1.6.0_10\bin>keytool -import -v -alias cacert -trustcac
erts -keystore cacerts.jks -storepass changeit -file root.crt
keytool error: java.io.FileNotFoundException: root.crt (The system cannot find t
he file specified)
java.io.FileNotFoundException: root.crt (The system cannot find the file specifi
ed)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo