need some help..Newbee
what is the difference by seting the keystore, trust store with the System.setProperty() or by creating them as....
KeyStore ks = KeyStore.getInstance("JKS");
ks.load(new FileInputStream(keystore), keystorepass);
KeyManagerFactory kmf = KeyManagerFactory.getInstance("SunX509");
kmf.init(ks, keystorepass);
is it that u create ur own keystore/ truststore if u require to store new certificates through coding.................
can u tell me that which implementation should be used and when?
[533 byte] By [
Deo_Zonea] at [2007-11-26 20:52:16]

# 10
well its some thing like this.....
after sending the certificate request is the next data from client or is the server sending some info....
]
***
*** CertificateRequest
Cert Types: RSA, DSS,
Cert Authorities:
<CN=xxxx OU=home, O=home, L=xxxx, ST=xxxxx C=xxx>
*** ServerHelloDone
Thread-0, WRITE: TLSv1 Handshake, length = 769
Thread-0, READ: TLSv1 Handshake, length = 714
*** Certificate chain
chain [0] = [
[
Version: V1
Subject: CN=casper, OU=home, O=home, L=xxxx, ST=xxxx, C=xxxx
Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
Key: Sun RSA public key, 1024 bits
modulus: 114853966683034469378815389355517833489580875214163953468754623516418342361734698294719709847790412703863840235375913044
1554724665030679409774338011969263884881411578710691774580063423
public exponent: 65537
Validity: [From: Wed Jan 10 13:21:30 GMT 2007,
To: Mon Mar 26 14:21:30 BST 2007]
Issuer: CN=casper, OU=home, O=xxxx, L=rxxx, ST=xxxx, C=xxx
SerialNumber: [45a4e85a]
]
Algorithm: [MD5withRSA]
Signature:
0000: 96 9A C8 32 77 85 97 BAA6 AA 92 D5 06 C6 C8 0F ...2w...........
0010: D3 B1 AF D9 5E 04 60 708D EB 98 44 91 36 34 25 ....^.`p...D.64%
0020: 05 53 2F F1 F2 73 70 6018 4F EB 86 B6 D1 A9 05 .S/..sp`.O......
0030: C7 15 A0 47 51 F3 92 0104 58 92 69 92 4D FB 46 ...GQ....X.i.M.F
0040: C0 13 03 7A FB 06 73 5A38 AA 7B 86 74 34 7A C1 ...z..sZ8...t4z.
0050: EB D8 05 D8 F6 29 1D 6BD5 EC 68 54 DB 46 11 36 .....).k..hT.F.6
0060: ED EB AC A3 FA 00 D3 952B BE 23 40 98 36 30 60 ........+.#@.60`
0070: D4 E9 E0 C0 35 E3 4E CC5B 74 33 B4 36 DB 9E B3 ....5.N.[t3.6...
]
***
Found trusted certificate:
[
[
Version: V1
Subject: CN=cxxx, OU=home, O=home, L=xxxx, ST=xxxx, C=xxxxx
Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
Key: Sun RSA public key, 1024 bits
modulus: 114853966683034469378815389355517833489580875214163953468754623516418342361734698294719709847790412703863840235375913044
1554724665030679409774338011969263884881411578710691774580063423
public exponent: 65537
Validity: [From: Wed Jan 10 13:21:30 GMT 2007,
To: Mon Mar 26 14:21:30 BST 2007]
Issuer: CN=cxxxr, OU=home, O=home, L=xxxx, ST=xxxx, C=GB
SerialNumber: [45a4e85a]
]
Algorithm: [MD5withRSA]
Signature:
0000: 96 9A C8 32 77 85 97 BAA6 AA 92 D5 06 C6 C8 0F ...2w...........
0010: D3 B1 AF D9 5E 04 60 708D EB 98 44 91 36 34 25 ....^.`p...D.64%
0020: 05 53 2F F1 F2 73 70 6018 4F EB 86 B6 D1 A9 05 .S/..sp`.O......
0030: C7 15 A0 47 51 F3 92 0104 58 92 69 92 4D FB 46 ...GQ....X.i.M.F
0040: C0 13 03 7A FB 06 73 5A38 AA 7B 86 74 34 7A C1 ...z..sZ8...t4z.
0050: EB D8 05 D8 F6 29 1D 6BD5 EC 68 54 DB 46 11 36 .....).k..hT.F.6
0060: ED EB AC A3 FA 00 D3 952B BE 23 40 98 36 30 60 ........+.#@.60`
0070: D4 E9 E0 C0 35 E3 4E CC5B 74 33 B4 36 DB 9E B3 ....5.N.[t3.6...
]
RSA PreMasterSecret version: TLSv1
*** ClientKeyExchange, RSA PreMasterSecret, TLSv1
Random Secret: { 3, 1, 7, 202, 80, 152, 223, 175, 26, 84, 236, 1, 35, 11, 141, 1, 36, 91, 125, 38, 35, 2, 211, 246, 155, 40, 40, 2
SESSION KEYGEN:
PreMaster Secret:
0000: 03 01 07 CA 50 98 DF AF1A 54 EC 01 23 0B 8D 01 ....P....T..#...
0010: 24 5B 7D 26 23 02 D3 F69B 28 28 D5 DC FD 08 81 $[.&#....((.....
0020: 63 F5 D5 FF 6D 90 B1 BB16 10 1D 6E C3 33 12 BE c...m......n.3..
CONNECTION KEYGEN:
Client Nonce:
0000: 45 F0 A4 58 1D 31 89 01A8 F2 61 D5 2B ED 51 D4 E..X.1....a.+.Q.
0010: E9 C4 98 8E 73 52 0A 75CD B6 EC 15 29 98 01 1A ....sR.u....)...
Server Nonce:
0000: 45 F0 A4 58 E2 F5 F6 EDFA AD FD 97 D7 0B 69 FA E..X..........i.
0010: CF 86 73 37 DE BA 65 AB12 BB 77 67 97 0E 76 5A ..s7..e...wg..vZ
Master Secret:
0000: 15 F3 0E EE 80 1B 92 5F91 D5 94 94 7B CA CD E7 ......._........
0010: 54 F1 5C F0 0E 62 39 CD0C 43 58 D8 46 49 CE 83 T.\..b9..CX.FI..
0020: 78 31 3E ED 8B 85 47 F78B 7C AA 21 14 45 56 5A x1>...G....!.EVZ
Client MAC write Secret:
0000: 81 BD 1A 1E 3C 78 7A 422C 24 97 10 C6 B7 08 E2 ....<xzB,$......
Server MAC write Secret:
0000: AE 98 57 9D A8 FA F8 A2D5 49 37 14 94 B0 65 05 ..W......I7...e.
Client write key:
0000: 9D E9 58 BD 33 80 83 4149 E3 80 38 9A 38 22 0E ..X.3..AI..8.8".
Server write key:
0000: 17 F5 F6 C5 90 7D 22 AB2D CF BD D0 8A 90 A0 E6 ......".-.......
... no IV for cipher
Thread-0, READ: TLSv1 Handshake, length = 134
*** CertificateVerify>