Well, it seems nobody had any idea how to answer (or didn't want to), so here is the answer:
"keytool" program does exist in the open jdk package, it's just not in the pass.
Using openssl I was able to get the key for what I needed - in my case gmail cert:
openssl s_client -connect
smtp.gmail.com:465The output included the needed key.
I then copied all the lines between (and including) the lines "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----" into a file called "gmail.cert".
I verified that the key was OK by typing:
openssl x509 -in gmail.cert -text
Last and final call was (notice the folder):
root@beagleboard:/usr/lib/jvm/java-6-openjdk/bin# ./keytool -import -alias
smtp.gmail.com -keystore /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts -file /media/sda1/gmail.cert
where "/media/sda1/" was the location of the certificate.
By doing this - I was finally able to use my program and send mail...
Thanks,
Gilad
בתאריך יום שלישי, 9 באוקטובר 2012 23:48:45 UTC+2, מאת Gilad: