Importing ECDSA public key from javascript/subtlecrypto
| From: | Martijn van Duren | Date: | Fri, 09 Jun 2017 08:38:23 +0000 |
| Subject: | Importing ECDSA public key from javascript/subtlecrypto | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-326107@lists.php.net to get a copy of this message | ||
Hello general@,
For a project I'm working on I need to import an ECDSA public key into
the openssl extension to verify data/signatures send by the client. The
key has been verified, so that's no problem.
The problem is the fact that subtlecrypto exports the key as raw, spki,
or jwk, while non of these can be imported into the openssl extension.
Can anyone inform me on a way to make the key compatible with the
openssl interface, be it on the javascript side or the php side.
Sincerely,
Martijn van Duren