jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S L <slouie.at.w...@gmail.com>
Subject Re: Using HTTP Script Recorder on JMeter 2.10 and 2.11 on Darwin
Date Wed, 26 Feb 2014 07:54:42 GMT
Sorry for not being responsive earlier but thanks for finding the cause of
the issue.  I was going to post things I found when testing on my home
Centos box but I don't think that will add anything to your solution.
 Thanks again for your help.


On Sat, Feb 22, 2014 at 7:53 PM, sebb <sebbaz@gmail.com> wrote:

> On 22 February 2014 11:11, sebb <sebbaz@gmail.com> wrote:
> > On 21 February 2014 01:51, sebb <sebbaz@gmail.com> wrote:
> >> On 21 February 2014 01:25, S L <slouie.at.work@gmail.com> wrote:
> >>> Hi,
> >>> I'm having trouble starting a proxy server for jmeter 2.10 and 2.11.  I
> >>> found a couple links on stack overflow and apache.org on this issue
> but my
> >>> error message is slightly different that what's written on these links.
> >>>  Per the wiki from apache.org, I don't think I have trouble finding
> >>> `keytool` because it returns the path when I do a
> >>>
> >>> $ which keytool
> >>> /usr/bin/keytool
> >>>
> >>> and  I don't have trouble creating a file in the jmeter-210 and
> >>> jmeter-211/bin dirs.  This is the error message I get in my jmeter.log
> file:
> >>>
> >>> ERROR - jmeter.protocol.http.proxy.ProxyControl: Could not initialise
> key
> >>> store java.io.IOException: Command :'"keytool" "-genkeypair" "-alias"
> >>> ":root_ca:" "-dname" "CN=_ DO NOT INSTALL unless this is your
> certificate
> >>> (JMeter root CA), OU=Username: COMPANY\user.name, C=US" "-keyalg"
> "RSA"
> >>> "-keystore" "proxyserver.jks" "-storepass" "randomstr1" "-keypass"
> >>> "randomstr1" "-validity" "7" "-ext" "bc:c"' failed, code: 1
> >>> keytool error: java.io.IOException: Invalid escaped character in AVA:
> 's'
> >>>
> >>> I don't know what this "invalid escaped char in AVA" is.  My company
> and
> >>> username don't have the string "AVA" and I didn't find it in any of the
> >>> property files in jmeter-21x/bin.
> >>
> >> I suspect it might be in the string "COMPANY\user.name" which is
> >> derived from the Java system property "user.name".
> >> You could try redefining it on the command line (or in
> >> system.properties) to something simpler, for example:
> >>
> >> -Duser.name=foobar
> >
> > The issue is the format of the OU part of the distinguished name.
> > When provided to keytool on the command-line via the -dname parameter,
> > certain characters are not allowed unless they are escaped.
> > For example, a bare comma is not allowed, as it separates parts of the
> dname.
> >
> > I'll create a Bugzilla for this.
>
> https://issues.apache.org/bugzilla/show_bug.cgi?id=56178
>
> > The work-round in the meantime is to simplify the user.name as already
> > noted above.
>
> BTW, AVA is defined as follows
>
> X.500 Attribute-Value-Assertion (AVA)
>
> AVAs are components of X.500 relative names.
>
>
> >>> Not sure if this is affecting it but I'm running jmeter from Darwin on
> a
> >>> MBP, OSX 10.7.5.
> >>> JMeter 2.9 doesn't give me any proxy issues, although, I ran into other
> >>> issues with it, which is why I tried using these 2 newer versions,
> which
> >>> are giving me problems with the proxy server.  I'll try going down to
> 2.8
> >>> to see what happens but I'd rather not if I can help it.  That and I'm
> >>> super curious what the issue is with 2.1x and my laptop.  Thanks in
> advance
> >>> for your help.
> >>>
> >>> Links I found:
> >>>
> http://stackoverflow.com/questions/19550472/jmeter-2-10-http-recorder-throws-keytool-exception
> >>> https://wiki.apache.org/jmeter/TestRecording210
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>

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