VNIT

Too lazy to think of a slogan

Trang chủ » Diễn Đàn » Lập trình và Phát triển Web » Java » Generate request certificate is not working with keytool

Bạn không có đủ quyền để trả lời bài viết trong chủ đề này! Đăng nhập hoặc Đăng Ký.

First Page Previous Page  1  Next Page Last Page
Generate request certificate is not working with keytool
0
question Gởi bởi phuongt (8:34 10-02-2012)
Bài: 1,736 / Điểm VCS: 1,686 /

Hi all,

I am using Keytool to create keystore and request cert.

Create 2048-bit RSA key pair and Self-Signed Certificate

keytool -genkeypair -keystore C:\mykey.jks -alias mykey -keyalg rsa -keysize 2048 -storepass testing -keypass testing -dname C=GB,ST=London,L=Bermondsey,O=Organize,OU=IT,CN=myname

It is OK
Now I generate request cert.

keytool -certreq -keystore C:\mykey.jks -alias mykey -storepass testing -file C:\mykey.req.pem

It runs more than one hour and I have to stop program.

Any idea for help?lp?
Re: Generate request certificate is not working with keytool
0
answer Gởi bởi Thành Bá Nguyễn (2:43 13-02-2012)
Bài: 18,319 / Điểm VCS: 17,795 /

It runs more than one hour and I have to stop program.

Nghĩa là sao bạn? Lúc này chương trình của bạn crash, out of memory? Chính xác là nó bị thế nào?
Re: Generate request certificate is not working with keytool
0
answer Gởi bởi phuongt (4:27 14-02-2012)
Bài: 1,736 / Điểm VCS: 1,686 /

It runs more than one hour and I have to stop program.

Nghĩa là sao bạn? Lúc này chương trình của bạn crash, out of memory? Chính xác là nó bị thế nào?


My OS is XP and with C:\mykey.req.pem java could not write data.
Change to C:\mykey-req.pem then it is OK.
Re: Generate request certificate is not working with keytool
0
answer Gởi bởi Thành Bá Nguyễn (1:43 15-02-2012)
Bài: 18,319 / Điểm VCS: 17,795 /

It runs more than one hour and I have to stop program.

Nghĩa là sao bạn? Lúc này chương trình của bạn crash, out of memory? Chính xác là nó bị thế nào?


My OS is XP and with C:\mykey.req.pem java could not write data.
Change to C:\mykey-req.pem then it is OK.

No idea là tại sao file name lại có ảnh hưởng tới cái này. Anyway, giờ bạn rename file đã ok thì tốt rồi, problem solved :-)
Re: Generate request certificate is not working with keytool
0
answer Gởi bởi phuongt (9:04 21-02-2012)
Bài: 1,736 / Điểm VCS: 1,686 /


No idea là tại sao file name lại có ảnh hưởng tới cái này. Anyway, giờ bạn rename file đã ok thì tốt rồi, problem solved :-)


It was solved but I still have more problems.
I have the java application which implements its job by sending info client to the bank.
I use https connection for communication.

I set up keystore and truststore where I add root CA (or CA) to truststore and add signed cert and cert chain to keystore. Two keystores will use in SSLContext class.

The problem is:
I don't want to purchase the real certificate at development stage. I use OpenSSL to generate self signed CA as root certificate, CSR (request certificate), CRT (signed certificate) and CRL(certificate revoked list)

In java program I load CA & CRL then verify CRL against CA, of course it is OK due to the same Issuer. later on CRL will use to check revoked certs download from Web Server

When I connect to Server and getInputStream will throw an error because CA cannot verify Server certs.
Re: Generate request certificate is not working with keytool
0
answer Gởi bởi Thành Bá Nguyễn (0:58 23-02-2012)
Bài: 18,319 / Điểm VCS: 17,795 /

Trước có lần tôi làm thì key cũng là key "xịn" nên không rõ là key tự gen nó sẽ ra sao. Tuy nhiên nếu project này sẽ go live thì tôi nghĩ có thể bạn nên mua 1 cái key với thời gian là 1 năm để sử dụng trong quá trình develop.
First Page Previous Page  1  Next Page Last Page

Thống kê

Hiện tại web site có 85,800 thành viên. Xin chào đón thành viên mới nhất minhnguyen_pr.

Các thành viên đã tạo 62,791 chủ đề và 241,917 bài viết trong 30 box.

Hiện có 0 thành viên và 1 khách đang trực tuyến.

Template by styleshout / Icons by Tango Icon Library and FamFamFam.