ec_pem
Enables crypto.sign
and crypto.verify
using crypto.createECDH
generated keys
Use
const crypto = ;const ec_pem = ; let alice_pem_private alice_pem_public; let curve = 'secp521r1' let alice = crypto; alice; alice = ; alice_pem_private = alice; // console.log(alice_pem_private); alice_pem_public = alice; // console.log(alice_pem_public); const data = Buffer; let signature; const sign = crypto; sign; signature = sign; // console.log({signature}) const verify = crypto; verify; const matched = verify; // console.log({matched}) if !matched throw "Verification failed";
Use ec_pem/cert
const https = ;const ec_pem = ;const ec_cert = ; const tls_options = ec_cert { let svr = tls_options svr}
Use ec_pem/local_cert
const https = ;const ec_localcert = ; const tls_options =
or
const https = ;const ec_localcert = ; const tls_options =