Signing with a private key as a string in php
问题 I have a private key stored as a string (hard coded), and I need to sign a string with that key. I could use openssl, but I don't find in the documentation how to use my private key. I only see how to use pem files, or things related to certificates, whereas my process has nothing to do with certificates or anything of the sort. The private key comes from a Java desktop application and has been generated with the class KeyPairGenerator KeyPairGenerator keyGen = KeyPairGenerator.getInstance(