org.jgroups.util
public class Proxy extends Object
127.0.0.1:8888=www.ibm.com:80 localhost:80=pop.mail.yahoo.com:110The first line forwards all requests to port 8888 on to www.ibm.com at port 80 (it also forwards the HTTP response back to the sender. The second line essentially provides a POP-3 service on port 8110, using Yahoo's POP service. This is neat when you're behind a firewall and one of the few services in the outside world that are not blocked is port 80 (HHTP).
keytool -genkey -keystore /home/bela/.keystore -keyalg rsa -alias bela -storepassStart the Proxy as follows:-keypass
java -Djavax.net.ssl.keyStore=/home/bela/.keystore -Djavax.net.ssl.keyStorePassword=Start client as follows:-Djavax.net.ssl.trustStore=/home/bela/.keystore -Djavax.net.ssl.trustStorePassword= org.jgroups.util.Proxy -file /home/bela/map.properties
java -Djavax.net.ssl.trustStore=/home/bela/.keystore -Djavax.net.ssl.trustStorePassword=sslclient
openssl x509 -in server.crt -out server.crt.der -outform DER keytool -import -trustcacerts -aliasThis will store the server's certificate in the ${user.home}/.keystore key store.-file server.crt.der
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol -Djavax.net.debug=ssl
UNKNOWN: Check whether SSLSocket.getChannel() or SSLServerSocket.getChannel() works.
Constructor Summary | |
---|---|
Proxy(InetAddress local, int local_port, InetAddress remote, int remote_port, boolean verbose, boolean debug) | |
Proxy(InetAddress local, int local_port, InetAddress remote, int remote_port, boolean verbose, boolean debug, String mapping_file) |
Method Summary | |
---|---|
static void | main(String[] args) |
void | start() |