wood burning stoves 2.0*
The moose likes Security and the fly likes Generating Certificate and Certificate request Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "Generating Certificate and Certificate request" Watch "Generating Certificate and Certificate request" New topic
Author

Generating Certificate and Certificate request

hisham ragheb
Ranch Hand

Joined: Apr 14, 2008
Posts: 30
Hi all,

Im totally new in this area so please be patient with me.

i want to make a secure web connection. so, i created the private key with openSSL as follow:

openssl>genrsa -out mykey.pem

here is my first question???

do i have to generate a CSR? or public key certificate?

should i use:

openssl>req -new -key mykey.pem -out mypublic.pem
or
openssl>req -new -key mykey.pem -x509 -out mypublic.pem

My second question is:
how do the web browsers of the clients automatically load my public key and use it to encrypt data when a form request is dedicated to my web site



regards


SCJP 1.5 (94%), SCWCD 1.4 (91%), SCBCD 1.5 (95%)
greg stark
Ranch Hand

Joined: Aug 10, 2006
Posts: 220
1. This is java forum, so you should restrict yourself to java relevant questions.
2. Both the browser and the server support the SSL/TLS protocol, which is described in RFC 2246 and its sucessors. It is available to java programmers through the JSSE.


Nice to meet you.
hisham ragheb
Ranch Hand

Joined: Apr 14, 2008
Posts: 30
greg stark wrote:1. This is java forum, so you should restrict yourself to java relevant questions.
2. Both the browser and the server support the SSL/TLS protocol, which is described in RFC 2246 and its sucessors. It is available to java programmers through the JSSE.


This question is very related to java,because:

1-i want to add the public/private keys to the keystore
2-i want to use the private key to sign my jar using the jar signer
3-i want to configure the java.policy to trust the digital signature on the jar file

i think all of this is related to java anyway
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Generating Certificate and Certificate request
 
Similar Threads
openssl failing to download remote certificate
Creating CA using keytool
openssl x509
Queries on role of files .keystore and CAKey.pem while moving the site to https?
problem with creating a private key via openssl