How do I digitally sign a . pem file using the SHA256 algorithm

Asked

Viewed 831 times

2

I have a. pem file converted from a A3(.pfx) digital certificate I need to sign 2 Cnpjs concatenated using this file. pem, which contains 2 Keys 1 Public and another Private, I need to use the private key to make the signature of Cnpjs, in which case it will generate a signature in Base64. There is a way to do this using Openssl, follow the link:https://www.madboa.com/geek/openssl/#Digest-Sign. But in case I wanted to know if it would be possible to do this in the language of VB.net or in C#, In VB I imported (Imports System.Security.Cryptography), but I could not give continuity. Someone would have a hint?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.