<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@SimSun";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1921060002;
mso-list-type:hybrid;
mso-list-template-ids:-1852252756 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello Arin, anyone who can help me.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">First of all, Thanks Tim, <o:p></o:p></p>
<p class="MsoNormal"> The tips Tim gave me DOES work sometimes. But the behavior was sort of weird. It still gave me “charsetName” error. But ip WAS assigned. No return message but exception. So… I decide to use SOAP instead of axis2, nothing
fancy.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> System.<i>setProperty</i>(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"javax.net.ssl.trustStore"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">,
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"ssl/arin.jks"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);
</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> System.<i>setProperty</i>(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"javax.net.ssl.trustStorePassword"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">,
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"arinLims"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);
</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> System.<i>setProperty</i>(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"javax.net.ssl.keyStore"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">,
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"ssl/arin.jks"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);
</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> System.<i>setProperty</i>(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"javax.net.ssl.keyStorePassword"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">,
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"arinLims"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);
</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> System.<i>setProperty</i>(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"javax.net.ssl.keyStoreType"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">,
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"jks"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> String strResponseXml =
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">null</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">;</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">try</span></b><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> {</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> URL url =
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">new</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> URL(strUrl);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> SOAPHttpsURLConnection httpsURLConnection = (SOAPHttpsURLConnection)url.openConnection();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> httpsURLConnection.setRequestProperty(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"Content-Type"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">,
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"text/plain; charset=utf-8"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);
</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> httpsURLConnection.setRequestMethod(strMethod);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> httpsURLConnection.setDoOutput(</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">true</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> httpsURLConnection.setDoInput(</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">true</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> OutputStream outputStream = httpsURLConnection.getOutputStream();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"Sean
Zhao ArinUtil.send : outputStream = "</span><span style="font-size:10.0pt;font-family:"Courier New";color:black"> + outputStream);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> InputStream inputStream = httpsURLConnection.getInputStream();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"Sean
Zhao ArinUtil.send : inputStream = "</span><span style="font-size:10.0pt;font-family:"Courier New";color:black"> + inputStream);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> OutputStreamWriter outputStreamWriter =
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">new</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> OutputStreamWriter(outputStream);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> BufferedWriter bufferedWriter =
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">new</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> BufferedWriter(outputStreamWriter);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"Sean
Zhao ArinUtil.send : strPayload = "</span><span style="font-size:10.0pt;font-family:"Courier New";color:black"> + strPayload);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> bufferedWriter.write(strPayload +
</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">'\n'</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> InputStreamReader inputStreamReader =
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">new</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> InputStreamReader(inputStream);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> BufferedReader bufferedReader =
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">new</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> BufferedReader(inputStreamReader);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"Sean
Zhao ArinUtil.send : going to send xml to Arin"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">while</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> ((strResponseXml = bufferedReader.readLine()) !=
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">null</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">)
</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> {</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"Sean
Zhao ArinUtil.send : strResponseXml = "</span><span style="font-size:10.0pt;font-family:"Courier New";color:black"> + strResponseXml);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> }</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> outputStream.flush();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> outputStreamWriter.flush();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> bufferedWriter.flush();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"Sean
Zhao ArinUtil.send : flushed all"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> bufferedWriter.close();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> outputStreamWriter.close();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> outputStream.close();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"Sean
Zhao ArinUtil.send : closed all writers"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> bufferedReader.close();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> inputStreamReader.close();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> inputStream.close();</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"Sean
Zhao ArinUtil.send : closed all readers"</span><span style="font-size:10.0pt;font-family:"Courier New";color:black">);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> }</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">catch</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black">(IOException ioException)</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> {</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"Sean
Zhao ArinUtil.send : ioException = "</span><span style="font-size:10.0pt;font-family:"Courier New";color:black"> + ioException.getMessage());</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black"> }</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">System.</span><i><span style="font-size:10.0pt;font-family:"Courier New";color:#0000C0">out</span></i><span style="font-size:10.0pt;font-family:"Courier New";color:black">.println(</span><span style="font-size:10.0pt;font-family:"Courier New";color:#2A00FF">"Sean
Zhao ArinUtil.send : strResponseXml(before return) = "</span><span style="font-size:10.0pt;font-family:"Courier New";color:black"> + strResponseXml);</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:"Courier New";color:black">
</span><b><span style="font-size:10.0pt;font-family:"Courier New";color:#7F0055">return</span></b><span style="font-size:10.0pt;font-family:"Courier New";color:black"> strResponseXml;</span><span style="font-size:10.0pt;font-family:"Courier New""><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But this time I still get errors with more details, <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><i><span style="font-size:14.0pt;color:red"><Apr 22, 2011 2:14:13 PM MDT> <Warning> <Security> <BEA-090477> <Certificate chain received from www.arin.net - 192.149.252.75 was not trusted causing SSL handshake failure.><o:p></o:p></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:14.0pt;color:red"><Apr 22, 2011 2:14:14 PM MDT> <Warning> <Security> <BEA-090477> <Certificate chain received from www.arin.net - 192.149.252.75 was not trusted causing SSL handshake failure.><o:p></o:p></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:14.0pt;color:red"><Apr 22, 2011 2:14:14 PM MDT> <Warning> <Security> <BEA-090477> <Certificate chain received from www.arin.net - 192.149.252.75 was not trusted causing SSL handshake failure.><o:p></o:p></span></i></b></p>
<p class="MsoNormal"><b><i><span style="font-size:14.0pt;color:red">Sean Zhao ArinUtil.send : ioException = [Security:090477]Certificate chain received from www.arin.net - 192.149.252.75 was not trusted causing SSL handshake failure</span></i></b>.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I guess it is either my api key is bad, or my jks file is bad.
<o:p></o:p></p>
<p class="MsoNormal">I use keytool to view my jsk key, It looks like this,<o:p></o:p></p>
<p class="MsoNormal">keytool -list -v -keystore arin.jks<o:p></o:p></p>
<p class="MsoNormal">Enter keystore password:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Keystore type: JKS<o:p></o:p></p>
<p class="MsoNormal">Keystore provider: SUN<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Your keystore contains 1 entry<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Alias name: www.arin.net-1<o:p></o:p></p>
<p class="MsoNormal">Creation date: Apr 12, 2011<o:p></o:p></p>
<p class="MsoNormal">Entry type: trustedCertEntry<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Owner: CN=www.arin.net, OU=Intel(R) Client Setup Certificate, O=American Registry for Internet Numbers Ltd., L=Chantilly, ST=VA, C=US<o:p></o:p></p>
<p class="MsoNormal">Issuer: SERIALNUMBER=10688435, CN=Starfield Secure Certification Authority, OU=http://certificates.starfieldtech.com/repository, O="Starfield Technologies, Inc.", L=Scottsdale, ST=Arizona, C=US<o:p></o:p></p>
<p class="MsoNormal">Serial number: 3eda469e277a2<o:p></o:p></p>
<p class="MsoNormal">Valid from: Wed Oct 07 15:22:25 MDT 2009 until: Thu Nov 01 12:39:34 MDT 2012<o:p></o:p></p>
<p class="MsoNormal">Certificate fingerprints:<o:p></o:p></p>
<p class="MsoNormal"> MD5: 3E:22:6E:76:7A:3F:5C:04:BB:07:0D:C1:07:1D:77:A7<o:p></o:p></p>
<p class="MsoNormal"> SHA1: AF:C6:21:17:56:BB:D6:BB:27:C5:B2:95:BD:4D:32:B2:08:D4:6B:53<o:p></o:p></p>
<p class="MsoNormal"> Signature algorithm name: SHA1withRSA<o:p></o:p></p>
<p class="MsoNormal"> Version: 3<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Extensions:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#1: ObjectId: 2.5.29.15 Criticality=true<o:p></o:p></p>
<p class="MsoNormal">KeyUsage [<o:p></o:p></p>
<p class="MsoNormal"> DigitalSignature<o:p></o:p></p>
<p class="MsoNormal"> Key_Encipherment<o:p></o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#2: ObjectId: 2.5.29.19 Criticality=true<o:p></o:p></p>
<p class="MsoNormal">BasicConstraints:[<o:p></o:p></p>
<p class="MsoNormal"> CA:false<o:p></o:p></p>
<p class="MsoNormal"> PathLen:2147483647<o:p></o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#3: ObjectId: 2.5.29.14 Criticality=false<o:p></o:p></p>
<p class="MsoNormal">SubjectKeyIdentifier [<o:p></o:p></p>
<p class="MsoNormal">KeyIdentifier [<o:p></o:p></p>
<p class="MsoNormal">0000: 7E AA 33 74 CD 7D C9 DC B4 08 6A D2 C1 24 E2 70 ..3t......j..$.p<o:p></o:p></p>
<p class="MsoNormal">0010: 65 8F F3 B8 e...<o:p></o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#4: ObjectId: 1.3.6.1.5.5.7.1.1 Criticality=false<o:p></o:p></p>
<p class="MsoNormal">AuthorityInfoAccess [<o:p></o:p></p>
<p class="MsoNormal"> [<o:p></o:p></p>
<p class="MsoNormal"> accessMethod: 1.3.6.1.5.5.7.48.1<o:p></o:p></p>
<p class="MsoNormal"> accessLocation: URIName: http://ocsp.starfieldtech.com/,<o:p></o:p></p>
<p class="MsoNormal"> accessMethod: 1.3.6.1.5.5.7.48.2<o:p></o:p></p>
<p class="MsoNormal"> accessLocation: URIName: http://certificates.starfieldtech.com/repository/sf_intermediate.crt]<o:p></o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#5: ObjectId: 2.5.29.31 Criticality=false<o:p></o:p></p>
<p class="MsoNormal">CRLDistributionPoints [<o:p></o:p></p>
<p class="MsoNormal"> [DistributionPoint:<o:p></o:p></p>
<p class="MsoNormal"> [URIName: http://crl.starfieldtech.com/sfs2-0.crl]<o:p></o:p></p>
<p class="MsoNormal">]]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#6: ObjectId: 2.5.29.32 Criticality=false<o:p></o:p></p>
<p class="MsoNormal">CertificatePolicies [<o:p></o:p></p>
<p class="MsoNormal"> [CertificatePolicyId: [2.16.840.1.114414.1.7.23.2]<o:p></o:p></p>
<p class="MsoNormal">[PolicyQualifierInfo: [<o:p></o:p></p>
<p class="MsoNormal"> qualifierID: 1.3.6.1.5.5.7.2.1<o:p></o:p></p>
<p class="MsoNormal"> qualifier: 0000: 16 31 68 74 74 70 3A 2F 2F 63 65 72 74 69 66 69 .1http://certifi<o:p></o:p></p>
<p class="MsoNormal">0010: 63 61 74 65 73 2E 73 74 61 72 66 69 65 6C 64 74 cates.starfieldt<o:p></o:p></p>
<p class="MsoNormal">0020: 65 63 68 2E 63 6F 6D 2F 72 65 70 6F 73 69 74 6F ech.com/reposito<o:p></o:p></p>
<p class="MsoNormal">0030: 72 79 2F ry/<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">]] ]<o:p></o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#7: ObjectId: 2.5.29.37 Criticality=false<o:p></o:p></p>
<p class="MsoNormal">ExtendedKeyUsages [<o:p></o:p></p>
<p class="MsoNormal"> serverAuth<o:p></o:p></p>
<p class="MsoNormal"> clientAuth<o:p></o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#8: ObjectId: 2.5.29.35 Criticality=false<o:p></o:p></p>
<p class="MsoNormal">AuthorityKeyIdentifier [<o:p></o:p></p>
<p class="MsoNormal">KeyIdentifier [<o:p></o:p></p>
<p class="MsoNormal">0000: 49 4B 52 27 D1 1B BC F2 A1 21 6A 62 7B 51 42 7A IKR'.....!jb.QBz<o:p></o:p></p>
<p class="MsoNormal">0010: 8A D7 D5 56 ...V<o:p></o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">#9: ObjectId: 2.5.29.17 Criticality=false<o:p></o:p></p>
<p class="MsoNormal">SubjectAlternativeName [<o:p></o:p></p>
<p class="MsoNormal"> DNSName: www.arin.net<o:p></o:p></p>
<p class="MsoNormal"> DNSName: arin.net<o:p></o:p></p>
<p class="MsoNormal">]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Anything bad?<o:p></o:p></p>
<p class="MsoNormal">What I did is <o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>I downloaded InstallCert.java from Internet<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>Run it<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">3.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>And export the file InstallCert created into a cert file with keytool<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">4.<span style="font:7.0pt "Times New Roman"">
</span></span><![endif]>And import the cert file into my new jks file with keytool.<o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoListParagraph">Anything wrong I did ?<o:p></o:p></p>
<p class="MsoListParagraph"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:"Arial","sans-serif"">Thanks a lot for the help,</span></b><span style="font-size:12.0pt;font-family:"Times New Roman","serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif""> <o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:12.0pt;font-family:"Arial","sans-serif"">Sean Zhao</span></b><o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">This communication is the property of Qwest and may contain confidential or<br>
privileged information. Unauthorized use of this communication is strictly<br>
prohibited and may be unlawful. If you have received this communication<br>
in error, please immediately notify the sender by reply e-mail and destroy<br>
all copies of the communication and any attachments.<br>
</font>
</body>
</html>