Retrieve Subject alternative names of X.509 certificate in java
问题 I have tried using the solution provided in this link. I am getting following error when i tried reading subject alternative names of X.509 Certificate java.lang.NoSuchMethodError: org.bouncycastle.asn1.ASN1InputStream.readObject()Lorg/bouncycastle/asn1/DERObject; At below line of code ASN1InputStream decoder = new ASN1InputStream((byte[]) item.toArray()); DEREncodable encoded = decoder.readObject(); .der file is used to create certificate as follows. X509Certificate cert=null; fis = new