title: RSA private key from modulus and private exponent in JavaScript
body: <p>I have a modulus and private exponent. How can I generate an RSA private Key in JavaScript from that?</p>
  
  <p>Or if these values are not enough to generate a RSA private Key. What are the other values that I might possibly need.</p>
  
  <p><a href="https://docs.oracle.com/javase/7/docs/api/java/security/spec/RSAPrivateKeySpec.html#RSAPrivateKeySpec(java.math.BigInteger,%20java.math.BigInteger)" rel="nofollow">RSAPrivateKeySpec</a> in Java 7 is able to generate RSA private key with mod and private Exp. I'm looking for a equivalent in JavaScript.</p>
  
  <p>I also tried npm ursa module which unfortunately didn't work out. </p>