'Fabric CA Enroll failed using Go SDK

I was trying to enroll a user with the Fabric Go Client. I have recently changed my Go lang version to 1.17 and after that I am receiving this error: X09: certificate relies on legacy Common Name field, use SANs instead

Although I have passed the extra hosts using custom CSR (which will result in setting up the SANS in the CSR request) while enrolling the user.

If there is anything extra which needs to be done let me know. As per the docs, I have to pass the CSR hosts which I am passing already.

Thanks,



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source