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ý.
| Generate request certificate is not working with keytool |
|---|
|
0
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
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?
---------
NBThanh Tutorial Room, cập nhật thường xuyên bài viết mới. Các bài viết mới cập nhật: - PHP - Lưu nội dung file ảnh vào CSDL NEW! - Làm việc với CSDL MySQL trong PHP - Học PHP qua ví dụ - Gởi email text, HTML, tiếng việt Unicode - Học PHP qua ví dụ - 1 chương trình download manager/giấu đường dẫn download - Học PHP qua ví dụ - Làm việc với Cookie và Session |
| Re: Generate request certificate is not working with keytool |
|
0
It runs more than one hour and I have to stop program. 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
It runs more than one hour and I have to stop program. 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 :-)
---------
NBThanh Tutorial Room, cập nhật thường xuyên bài viết mới. Các bài viết mới cập nhật: - PHP - Lưu nội dung file ảnh vào CSDL NEW! - Làm việc với CSDL MySQL trong PHP - Học PHP qua ví dụ - Gởi email text, HTML, tiếng việt Unicode - Học PHP qua ví dụ - 1 chương trình download manager/giấu đường dẫn download - Học PHP qua ví dụ - Làm việc với Cookie và Session |
| Re: Generate request certificate is not working with keytool |
|
0
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
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.
---------
NBThanh Tutorial Room, cập nhật thường xuyên bài viết mới. Các bài viết mới cập nhật: - PHP - Lưu nội dung file ảnh vào CSDL NEW! - Làm việc với CSDL MySQL trong PHP - Học PHP qua ví dụ - Gởi email text, HTML, tiếng việt Unicode - Học PHP qua ví dụ - 1 chương trình download manager/giấu đường dẫn download - Học PHP qua ví dụ - Làm việc với Cookie và Session |
