How to create certificate object from public key in PEM format?
问题 I want to use iText to embed signed hash and public in PDF. As per arguments to sign method in iText 7 I need to pass certificate chain, How can I create this certificate object directly from public key string? Update 1 Below is small c# code. You can see I am trying to get x509 certificate from public key. This certificate will be used to verify the signed data from corresponding private key. Also it will be used to embed this public certificate and signed hash into PDF for digital signature