Hi I have a cert (generated by Intune) that openssl can display as shown below X509v3 extensions: X509v3 Subject Alternative Name: othername: UPN::y...@nilese.net, URI:DeviceId:b0d162d5-891e-4958-8308-ce8a0fe276d6, URI:AAD_Device_ID:7c902121-f41e-4c90-a9e8-0fb082ea4b1b, URI:tag:microsoft.com,2022-09-14:sid:S-1-5-21-2590101829-657457472-1864670235-1113
But when I try to parse it in golang it throws this error below: x509: cannot parse URI "AAD_Device_ID:7c902121-f41e-4c90-a9e8-0fb082ea4b1b": parse "AAD_Device_ID:7c902121-f41e-4c90-a9e8-0fb082ea4b1b": first path segment in URL cannot contain colon Seems like openssl is more forgiving. Is there a workaround in golang to parse this cert ? Have attached both the go program and the certificate file Thanks -gopal -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/e487ccf4-e64b-4525-9517-24c8d4561979n%40googlegroups.com.
prog.go
Description: Binary data
cert.pem.cer
Description: application/x509-ca-cert