How to get the x509 certificate encoding type in Java
<p>I am trying to read a certificate for a remote host using Java. I want to get the encoding type. I typed:</p>

<pre><code>    System.out.println("The encoding is: "+ x509Cert.getEncoded().toString());
</code></pre>

<p>The output I get is:</p>

<pre><code>The encoding is: [B@597c3925
</code></pre>

<p>What is the problem ?</p>

<p>EDIT: x509Cert is an object of type X509Certificate.</p>
