PeculiarVentures / webcrypto-liner

webcrypto-liner is a polyfill that let's down-level User Agents (like IE/Edge) use libraries that depend on WebCrypto. (Keywords: Javascript, WebCrypto, Shim, Polyfill)
MIT License
149 stars 26 forks source link

Add support for spki and PKCS8 exports #12

Open rmhrisk opened 7 years ago

rmhrisk commented 7 years ago

PKIjs supports both SPKI and PKCS8, we can use this to add support for these key exports.

We can do this as an optional dependency. If PKIjs is found we could then support these types. This would give us better support with the webcrypto specification.

xybei commented 7 years ago

PKIjs importKey() as "spki" format, but webcrypto-liner only support "jwk", It would be nice If it can be unified.