Test exporting an RSA key. On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". Importing a JWK key... error is: TypeError: Failed to execute 'exportKey' on 'SubtleCrypto': Invalid keyFormat argument: null error is: TypeError: Failed to execute 'exportKey' on 'SubtleCrypto': Invalid keyFormat argument: undefined error is: TypeError: Failed to execute 'exportKey' on 'SubtleCrypto': Invalid keyFormat argument: [object Object] error is: TypeError: Failed to execute 'exportKey' on 'SubtleCrypto': Invalid keyFormat argument: error is: TypeError: Failed to execute 'exportKey' on 'SubtleCrypto': Invalid keyFormat argument: foobar Exporting the key as JWK... PASS exportedJWK.kty is 'RSA' PASS exportedJWK.n is publicKeyJSON.n PASS exportedJWK.e is publicKeyJSON.e PASS exportedJWK.alg is 'RS256' PASS exportedJWK.ext is true PASS exportedJWK.use is undefined PASS exportedJWK.key_ops is ['verify'] PASS successfullyParsed is true TEST COMPLETE