[ale] OT: JSSE

Christopher Fowler cfowler at outpostsentinel.com
Wed Jun 2 20:22:09 EDT 2004


Hopefully the list is working again.

I have a thread in Tomcat that is a simple proxy between a device and an
applet.  I want to use an SSL connection between the proxy and the
applet but am not sure where to start.  I have created a .pem file that
looks like this:

[root at sam-devel certs]# cat ac.pem
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQC/Lu8dW30j6hmebc2uUm/p5o2hJ4oM274SdZ5IffSn3RxvV6Fu
xhqP8Gxr+f4JX1F3QSeJX1ORYFi7rW7VQXXSZiiHq4PzaYsKv9UcLRd/eutFE3dL
sSk5Dl+QLlCWTrzq5M5tUNgc538JLU4r9k8DcX7VyCDWo0VwpKxB4k60QwIDAQAB
AoGAcLhLYxO+BJ7R3AcBbfZM5at5dbrKOiqVNm0CldstlItZaIxSMe27W4J1anRK
w1vfvGA931DFBMG5j24CGtotjIqt1yUXgWH8T6KsPD4Fm3oRPnYxPF9fduDDC6kt
ZVOiwQNlbxsmNUqZ4/to52iDWkmaEvjIKcuJ2T2S0GmP34ECQQDejP7ixHfqDMH7
xAbgkXOeeT0kY5uQaCuNm8ZPijP1brjP+cRiF1++Ggx3e76rwLMbNgMneQQwkw1N
Shg9X65/AkEA2+sGfFPzia9aea3e2dCcPaxG2eDJ/SoPukJhllBpVpoQVNCCV9+w
b5Mbu/2obqHMzlu21ebgoMjUSuauYq3gPQJAI2zOJcqgS+E7/5d0gMqmXNNvqBsy
6Ams5R2ms4KMQsUdJf3cBMEzvE7pLRvFfhFucSZn2iCpShIeS+8/bIWOgQJBAJAD
f7LJMzGV8HTAZLBUyQwmFhu19fBgq/34XHmX3POGXm18Qe8ToDHgrwfTm4ofUMRO
ERRQZgdEnKkUGVyrqq0CQBeO218szPU8hL1INULTsXE3es+CXmHOiLbxse+dQNtt
y48pGj5KG600Ez3Pd0mCSkhu6TioiZasmmdGqTvIrgo=
-----END RSA PRIVATE KEY-----
-----BEGIN CERTIFICATE-----
MIID3zCCA0igAwIBA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20xIDAeBgkqhkiG9w0BCQEWEWNm
b3dsZXJAb3BzdXAuY29tggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEEBQAD
gYEAUjUicxeApln3bY6ATVQf3hgNn+kJ6hyMkGaQJZSjxeLMrI+UgO7QHruxEoJ9
AWBR6Z0bCvVtaumQRVfsNGoJ0PnJT6Aypouo5QbyMvYF3Qy8UKor93z0V3uqD0WP
dOZv3A25LpYZ4fhhWZ0caW7Pq/oGVyEnXCBb2a/8129C1KI=
-----END CERTIFICATE-----

Do I need to add the following define to my java command line?
JAVA_OPTS="-Xms64m -Xmx128m
-Djavax.net.ssl.keyStore=/opt/SAM/SSL/certs/ac.pem"


Is what I'm doing the correct way to tell Java where my certificate is?







More information about the Ale mailing list