What version are you using? Looking at the code for the current one it's
not clear that this exception is possible. Is there a stack trace
associated with the exception?

Regards,

David

On 28/12/16 07:06, Eduardo Marques wrote:
> Good Afternoon,
>
> I'm trying to use your solution to take some information from the
> certificate.
>
> When i try to use GetSubjectAlternativeNames it's is giving me error
> and i don't know what else i can do.
>
> The error is "it is not possible to convert an object of
> type 'Org.BouncyCastle.Asn1.DerTaggedObject'
> to Org.BouncyCastle.Asn1.X509.GeneralName".
>
> The code below:
>
> 'ox509 is my certificate from X509Certificate2
>
> Dim certificate As Org.BouncyCastle.X509.X509Certificate
> Dim func As New Org.BouncyCastle.X509.X509CertificateParser
> certificate = func.ReadCertificate(oX509Cert.RawData)
>
> Dim identities As IList(Of String) = New List(Of String)()
> Dim alternativeNames As Collection =
> X509ExtensionUtilities.GetSubjectAlternativeNames(certificate)
>
> Someone can help me?
>
> Att.
>

Reply via email to