JDK-6927152 : Escaped char. can not be set to CSR correctly by keytool in jdk5u22
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 5.0u22
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2010-02-17
  • Updated: 2014-03-25
  • Resolved: 2011-03-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0u29 b01Fixed
Related Reports
Relates :  
Description
When a user tries to set escaped char. to CSR by keytool,
the char. does not seem set correctly.

CONFIGURATION:
JDK : 5u22 (32bits)
OS : windowsXP(SP2, Japanese, x86)

REPRODUCE : 
1.Compile the attached java program
2. Invoke "java Main.java"

EXPECTED :
.....
Subject(RFC2253): CN=\\\\a
Subject(pretty): CN="\\\\a"
Subject(raw): 30:0e:31:0c:30:0a:06:03:55:04:03:0c:03:5c:5c:61
CSR(raw): 30:82:02:13:30:82:01:d1:02:01:00:30:0e:31:0c:30:0a:06:03:55:04:03:0c:03:5c:5c:61:30:.....
                                                                                  ^^^^^^^^^
                                                                                  Correct
ACTUAL :
.....
Subject(RFC2253): CN=\\\\a
Subject(pretty): CN=\\a
Subject(raw): 30:0e:31:0c:30:0a:06:03:55:04:03:0c:03:5c:5c:61
CSR(raw): 30:82:02:12:30:82:01:d0:02:01:00:30:0d:31:0b:30:09:06:03:55:04:03:0c:02:5c:61:30:.....
                                                                                  ^^^^^
                                                                                  incorrect

FREQUENCY : 
This problem can be always reproducible.

Comments
EVALUATION Same as parent CR
31-05-2010