Use URL for HTTPS request using Proxy
Please consider this code:
public class Tester
public static void dump(InputStream inp) throws IOException
BufferedReader rdr = new BufferedReader(new InputStreamReader(inp));
while ((str = rdr.readLine()) != null)
public static void main(String args) throws IOException
URL url = new URL("https://www.google.com");
dump(url.openConnection().getInputStream()); /* Succeeds */
P...use this one
I have a certificate and a private key. I used keytool to create a
keystore with the certificate and alias of "tomcat". keytool does not
seem to provide a way to import a private key.
How can you import a private key into tomcat keystore.
I tried openssl using a command provided by Sudsy.
openssl pkcs12 -export
However, tomcat failed to negotiate ssl with the browser. I suspect
there is a...Problem connecting to https using ZSI (openssl problem)
I'm having problems trying to use ZSI to connect to a https url.
I give the command and I get prompted for my X509 cert pass-phrase, but
the program dies with an openssl error.
Here's my code:
from ZSI import *
b = Binding(url=u,ns=n, ssl=1, \
The traceback I get is:
Ent...Problem using https://
For the first time I'm trying to connect to an https server. However,
when I try
site = Net::HTTP.new(HOST, PORT)
site.use_ssl = true
http_resp, = site.get2(SCRIPT + arg,
'Authorization' => 'Basic ' +
warning: peer certificate won't be verified in this SSL session.
/usr/lib/ruby/1.9/net/protocols.rb:49:in `connect': unknown protocol
from /usr/lib/ruby/1.9/net/protocols.rb:49:in `ssl_connect...Problems using FTP URL
I've been banging my head against this one for a couple of days now
and need some help. We recenly started using the URL class to transfer
files via FTP. Our code works well with all servers we've run into,
except Solaris. When we try to FTP a file, we get the following error:
501 EPRT not allowed after EPSV ALL
I pulled the Java sourcs for the associated classes and moved them
into my own packages so I could modify and debug the code. I haven't
been using the URL class, however, instead I've been using my own
FtpURLConnection classes and a few other classes that lay be...pkgadd problem in solaris 10
i have been trying to install the sunpci2.3 packages from sun to drive a
sunpci II card.
i can install sunpci2.3, because it is in cdrom form. but both 2.3.1 qnd
2.3.2 are tarballs.
when i get a .pkg form, pkgadd -d ./ works just fine.
when i get a .tar form. i do tar -xvf ./....tar and the full pakage is
extracted. i can look inside it and everything is there which should be
there. howver, to pkgadd -d ./SUNWspci2 i get the response that
pkgadd:ERROR: no packages were found in </var/tmp/SUNWspci2>
this holds for both 2.3.1 and 2.3.2. i am working in /var/tmp.
before solaris ...pkgadd problem solaris 9
I am trying to insall GCC on a solaris 9 machine. When I try to
install the package with pkgadd I have the problem that i do not have
enough space left on / to store the spool files. I like to use a other
spool dir to store the temp files.....
Is this possible?
Johan Louwers <suntacNOSPAMPLEASE@dds.nl> writes:
>I am trying to insall GCC on a solaris 9 machine. When I try to
>install the package with pkgadd I have the problem that i do not have
>enough space left on / to store the spool files. I like to use a other
>spool dir to store the temp files.....
>Is this pos...problem using enterprise URL
i have just install oracle 10g (personal edition) release 2 in my window xp
sp2. I successfully install the product. When i run enterprise URL for the
frist time, the databse is in the state
Status: Status Pending
Status Pending since: Unavilable
I tried startup and shutdown, defining host credential and database
credentials but it generate error
Error Message was
Couldnot contact the agent . Verify that the url for agent is null.
Similarly i could not access any other links it reflect the error
Io exception: Unknown host specified
but i could log in using sqlplus, i have start and shut...Problem using SSHserver in Solaris
I have two servers A and B.
From A i want to Login to B as "root" through ssh.
In A i generate keys using ssh-keygen -t dsa.
I put the public keys of A in the authorized-key file of B.
Now when i do ssh B -l root
it gives me following error
Connection closed by 0.0.0.0
But if i remove the authorized files and do the login with password
authentications, it allows me to login. Can any one give a solution
email@example.com (insouciant) wrote in message news:<firstname.lastname@example.org>...
> I have two servers A and...Problem with using the unix() command under linux
I have some issues with a program (.m) that has a call to grep (via unix('grep')). I run tcsh and had some echo lines in my .cshrc that would output information when I log in. Due to the design of the program, having any output when the unix command is called would cause an error. I removed all the echo commands in my .cshrc and that fixed the problem. This issue I have is that I can understand why it happened, as when the unix command is called, it uses your shell environment (in my case, tcsh), but this doesn't happen to others using tcsh.
As a test, I call unix('grep t...problem with using solaris as smb client
When I try to use Solaris as a SMB client I get the following error message:
The filename "NewFolder" indicates that this file is of type "Folder".
The contents of the file indicate that the file is of type "Unknown
type". If you open this file, the file might present a security risk to
Do not open the file unless you created the file yourself, or received
the file from a trusted source. To open the file, rename the file to the
correct extension for "Unknown type", then open the file normally.
Alternatively, use the Open With menu to...example of using urllib2 with https urls
Can somebody provide an example of how to retrieve a https url, given
username and password? I don't find it in the standard documentation.
<snipped from working code to upload a file to https:
site---WARNING not tested after snipping>
# Get the length of the file from os.stat
file='<path to file to be uploaded>'
# file contains the entire path, split off the name
name...Problems Solaris ghosting using dd
I am currently in need of "ghosting" some solaris SPARC machines and
after some searching, I have found
The key command that is being used in his meathod is:
dd if=/dev/rdsk/c0t0d0s2 bs=1024k | bzip2 >
Obviously this needs a little tweeking to work on the V210's and V440's
I have in house and I admit i am a little shakey on hard drive
referencing in solaris.
On the v210's I believe this would be /dev/rdsk/c1t0d0s2, is this
correct and what would the V440's hav...problems using cURL to access https
I'm just starting to use cURL and having trouble accessing https pages.
All I want to do at this stage is get an https page and display it,
just to test the https get is working. However, I always get either a
CURLE_OPERATION_TIMEOUTED (28) or CURLE_COULDNT_CONNECT (7) error.
I can see from phpinfo() that cURL and SSL are installed, as follows:
CURL support enabled
CURL Information libcurl/7.12.0 OpenSSL/0.9.6b zlib/1.1.4
but my code that works fine for an http call doesn't work for an https
call. Any suggestions on what I might be doing wrong or what might be