Is there a way to make this library work with PKCS8
Closed this issue · 1 comments
VeselyJan92 commented
Hi, since the newer versions of OpenSSL uses the PKCS8 format and so as the php functions, is there way to make this library work with it because according to my tests, the library doenst work with it. I may be wrong. It only works with PKCS1.
I am able to generate PKCS8 private key in format: -----BEGIN PRIVATE KEY-----
openssl_pkey_export_to_file($pkcs12['pkey'], $root_cer_dir. "cert.key")
But to make everything work I need the PKCS1 format: -----BEGIN RSA PRIVATE KEY-----
VeselyJan92 commented
Somehow it has started working never mind, thank you for great wokr 👍 .