jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: HTTPS / SSL exception
Date Wed, 02 Dec 2009 17:35:47 GMT
Hi
>I know that our customers have client software that is using java 1.6
>and successfully connecting to our https server.
> I think that  there is something inside JMeter causing that problem.
That conclusion is incorrect. It looks to be quite clear from the exception
that the SUN VM you have isnt able to make an HTTPS connection to your
particular server (you can write a standalone java client which makes a
HTTPUrlConnection and test it out).

If your client does have a working java version , then you need to find out
what ssl setup changes were made (since you can add extension/provider
libraries ) and use the exact same versions of everything , and if you can
get a standalone java class to make the request you should be able to do it
from JMeter as well.
regards
deepak

On Wed, Dec 2, 2009 at 9:27 AM, Pavel Gouchtchine <guserlist@gmail.com>wrote:

> The ca certificate was installed.
> The java 1.6_17 was installed.
>
> The problem is still persist.
>
> I know that our customers have client software that is using java 1.6
> and successfully connecting to our https server.
>
> I think that  there is something inside JMeter causing that problem.
>
> Please help, if possible.
>
>
> Here is a portion of ssl logs produced by JMeter. I hope it can help.
>
> ***
> xxxxxxxx WEB 1-1, READ: TLSv1 Handshake, length = 781
> *** Diffie-Hellman ServerKeyExchange
> DH Modulus:  { 217, 13, 237, 25, 162, 73, 51, 227, 247, 120, 138, 233, 168,
> 48,
> 183, 114, 180, 14, 63, 123, 77, 68, 111, 38, 196, 145, 218, 37, 132, 243,
> 221, 1
> 67, 235, 153, 204, 63, 238, 222, 28, 118, 137, 210, 135, 172, 161, 221, 49,
> 57,
> 209, 177, 109, 27, 53, 213, 65, 126, 24, 226, 132, 23, 188, 43, 146, 27,
> 32, 112
> , 86, 5, 191, 7, 192, 162, 97, 103, 145, 210, 11, 156, 81, 174, 150, 81,
> 137, 21
> 3, 71, 72, 124, 52, 80, 50, 136, 5, 38, 222, 89, 97, 213, 227, 32, 55, 148,
> 12,
> 202, 79, 119, 227, 13, 85, 224, 156, 71, 77, 174, 59, 40, 31, 96, 211, 230,
> 91,
> 65, 209, 102, 200, 232, 6, 99, 48, 254, 82, 209, 46, 198, 108, 38, 91, 208,
> 25,
> 228, 82, 43, 8, 174, 232, 246, 219, 49, 96, 233, 190, 244, 38, 136, 129,
> 146, 14
> 5, 33, 28, 133, 147, 178, 201, 24, 23, 44, 16, 55, 34, 123, 230, 155, 71,
> 141, 3
> 9, 228, 33, 117, 15, 164, 9, 48, 121, 6, 49, 223, 28, 230, 1, 249, 38, 123,
> 163,
>  132, 99, 79, 125, 111, 239, 73, 242, 177, 97, 240, 74, 176, 250, 120, 36,
> 173,
> 244, 16, 150, 241, 0, 79, 73, 220, 221, 81, 41, 43, 63, 63, 108, 208, 38,
> 49, 12
> 2, 185, 238, 86, 142, 8, 218, 204, 6, 247, 251, 144, 23, 126, 48, 95, 181,
> 109,
> 227, 196, 40, 236, 181, 243, 218, 65, 255, 128, 163 }
> DH Base:  { 2 }
> Server DH Public Key:  { 11, 174, 179, 252, 144, 160, 30, 0, 25, 56, 136,
> 75, 22
> 3, 205, 208, 242, 135, 2, 50, 61, 165, 178, 89, 31, 146, 108, 11, 35, 204,
> 72, 2
> 43, 112, 180, 195, 32, 134, 146, 29, 203, 126, 217, 245, 13, 234, 17, 228,
> 124,
> 167, 219, 190, 255, 117, 216, 7, 35, 211, 112, 49, 165, 115, 128, 154, 105,
> 150,
>  169, 122, 244, 99, 112, 182, 61, 72, 255, 166, 163, 186, 18, 186, 52, 116,
> 33,
> 213, 243, 187, 117, 98, 188, 39, 255, 76, 187, 56, 3, 91, 26, 235, 6, 238,
> 235,
> 166, 98, 244, 120, 124, 128, 102, 19, 114, 12, 34, 81, 151, 72, 15, 78,
> 151, 26,
>  180, 101, 27, 224, 17, 228, 172, 23, 116, 26, 51, 86, 240, 46, 59, 242,
> 62, 143
> , 67, 172, 58, 237, 251, 75, 108, 1, 227, 144, 164, 9, 168, 132, 154, 156,
> 181,
> 197, 226, 225, 219, 169, 36, 99, 127, 229, 243, 9, 186, 83, 25, 44, 163,
> 153, 26
> , 135, 112, 8, 128, 53, 218, 33, 75, 214, 248, 207, 62, 250, 190, 253, 228,
> 175,
>  150, 104, 222, 176, 66, 186, 7, 60, 105, 127, 84, 216, 107, 70, 94, 209,
> 184, 1
> 08, 249, 58, 17, 96, 85, 74, 246, 205, 20, 68, 210, 221, 254, 167, 141,
> 169, 100
> , 157, 112, 173, 205, 181, 240, 130, 169, 148, 143, 43, 215, 103, 198, 222,
> 136,
>  180, 96, 72, 168, 88, 200, 14, 74, 223, 209, 241, 254, 172, 95, 184, 158,
> 2, 14
> 1 }
> Anonymous
> xxxxxxx WEB 1-1, handling exception: java.lang.RuntimeException: Could
> not genera
> te DH keypair
>
>
>
> On Fri, Nov 20, 2009 at 11:28 AM, sebb <sebbaz@gmail.com> wrote:
> > On 20/11/2009, Pavel Gouchtchine <guserlist@gmail.com> wrote:
> >> Hi All.
> >>  I am using JMeter 2.3.4 and Java 1.6.02.
> >>
> >>  I am trying to send a GET request via https. The following exception
> >>  is returned as a result.
> >>  (I am working to put "certificate" into standard java storage
> >>  currently. I think the exception is not related to certificate issues)
> >
> > On the contrary, it looks as though the Sun Java code may have a
> > problem with the specific certificate.
> >
> >>  Please, help.
> >
> > What happens if you use GET for different https sites?
> >
> >>  javax.net.ssl.SSLException: java.lang.RuntimeException: Could not
> >>  generate DH keypair
> >>         at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown
> Source)
> >>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown
> Source)
> >>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown
> Source)
> >>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(Unknown Source)
> >>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
> >>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
> >>         at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown
> Source)
> >>         at
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown
> >>  Source)
> >>         at
> sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
> >>         at
> org.apache.jmeter.protocol.http.sampler.HTTPSampler.sample(HTTPSampler.java:490)
> >>         at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1037)
> >>         at
> org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1023)
> >>         at
> org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:346)
> >>         at
> org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:243)
> >>         at java.lang.Thread.run(Unknown Source)
> >>  Caused by: java.lang.RuntimeException: Could not generate DH keypair
> >>         at com.sun.net.ssl.internal.ssl.DHCrypt.<init>(Unknown Source)
> >>         at
> com.sun.net.ssl.internal.ssl.ClientHandshaker.serverKeyExchange(Unknown
> >>  Source)
> >>         at
> com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
> >>         at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown
> Source)
> >>         at
> com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
> >>         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown
> Source)
> >>         at
> com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown
> >>  Source)
> >>         ... 11 more
> >>  Caused by: java.security.InvalidAlgorithmParameterException: Prime
> >>  size must be multiple of 64, and can only range from 512 to 1024
> >>  (inclusive)
> >>         at
> com.sun.crypto.provider.DHKeyPairGenerator.initialize(DashoA13*..)
> >>         at java.security.KeyPairGenerator$Delegate.initialize(Unknown
> Source)
> >>         ... 18 more
> >>
> >>  ---------------------------------------------------------------------
> >>  To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >>  For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message