test all jwk fields
This commit is contained in:
parent
37d96b61e7
commit
0085fcdf0f
|
@ -62,7 +62,9 @@ if (privkeyPemRef !== refs.privPem2) {
|
|||
//
|
||||
//
|
||||
console.log('PEM -> JWK ?', privkeyJwkRef.n === refs.privJwk.n);
|
||||
if (privkeyJwkRef.n !== refs.privJwk.n) {
|
||||
if (![ 'kty', 'n', 'e', 'p', 'q', 'dp', 'dq', 'qi', 'd' ].every(function (k) {
|
||||
return privkeyJwkRef[k] === refs.privJwk[k];
|
||||
})) {
|
||||
console.log('REF:');
|
||||
console.log(privkeyJwkRef);
|
||||
console.log('GEN:');
|
||||
|
|
Loading…
Reference in New Issue