Hello @Satyam Chauhan,
welcome to this moderated Azure community forum.
I wrote a blog post where I used the Step CLI tool to generate the certificates.
There is a sample C# application in that blog post, based on the Microsoft Sample library.
An alternative C# application can be found in this blog post.
Can you first try this out?
If this is working, you can try out Open SSL.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.