Current location - Quotes Website - Signature design - Who knows how to write the PHP code of public key and private key encryption signature? The public key format is cer, and the private key format is pfx.
Who knows how to write the PHP code of public key and private key encryption signature? The public key format is cer, and the private key format is pfx.
Hello, PHP has no native support for RSA encryption. You need to open the openssl extension and know the parameters such as the certificate format of the server, otherwise you can't sign it. PHP's RAS encryption and decryption code is in Alipay's SDK, and examples can be referenced. Look for RSA encrypted data again, and you will understand the process after reading it. If you want to connect with the jks certificate of java, it seems impossible. Thank you.