<p dir="auto">I'm having some issues using the <a href="https://github.com/quartzjer/ursa">ursa</a> module on electron.</p>
<p dir="auto">I installed the module using npm like so:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install --save ursa"><pre class="notranslate"><code class="notranslate">npm install --save ursa
</code></pre></div>
<p dir="auto">Then rebuilt the native extensions for electron like so:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./node_modules/.bin/electron-rebuild"><pre class="notranslate"><code class="notranslate">./node_modules/.bin/electron-rebuild
</code></pre></div>
<p dir="auto">This seemed to exit immediately / not actually do anything, and when I ran the app I got the usual error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: Module version mismatch. Expected 44, got 14."><pre class="notranslate"><code class="notranslate">Error: Module version mismatch. Expected 44, got 14.
</code></pre></div>
<p dir="auto">So I rebuild the native extension manually using node-gyp like so:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="HOME=~/.electron-gyp node-gyp rebuild --target=0.28.1 --arch=ia64 --dist-url=https://atom.io/download/atom-shell"><pre class="notranslate"><code class="notranslate">HOME=~/.electron-gyp node-gyp rebuild --target=0.28.1 --arch=ia64 --dist-url=https://atom.io/download/atom-shell
</code></pre></div>
<p dir="auto">And I now get the following error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dyld: lazy symbol binding failed: Symbol not found: _RSA_generate_key
  Referenced from: /Users/daniel/work/kuddl/electron-client/node_modules/ursa/build/Release/ursaNative.node
  Expected in: dynamic lookup

dyld: Symbol not found: _RSA_generate_key
  Referenced from: /Users/daniel/work/kuddl/electron-client/node_modules/ursa/build/Release/ursaNative.node
  Expected in: dynamic lookup"><pre class="notranslate"><code class="notranslate">dyld: lazy symbol binding failed: Symbol not found: _RSA_generate_key
  Referenced from: /Users/daniel/work/kuddl/electron-client/node_modules/ursa/build/Release/ursaNative.node
  Expected in: dynamic lookup

dyld: Symbol not found: _RSA_generate_key
  Referenced from: /Users/daniel/work/kuddl/electron-client/node_modules/ursa/build/Release/ursaNative.node
  Expected in: dynamic lookup
</code></pre></div>
<p dir="auto">Here's my code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var ursa = require('ursa');
var key = ursa.generatePrivateKey(2048, 65537);"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">ursa</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'ursa'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">key</span> <span class="pl-c1">=</span> <span class="pl-s1">ursa</span><span class="pl-kos">.</span><span class="pl-en">generatePrivateKey</span><span class="pl-kos">(</span><span class="pl-c1">2048</span><span class="pl-kos">,</span> <span class="pl-c1">65537</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I think this may be related to this issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="67929002" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/1410" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/1410/hovercard" href="https://github.com/electron/electron/issues/1410">#1410</a></p>
<p dir="auto">Version Numbers:</p>
<table role="table">
  <tbody><tr>
    <th>Electron Version</th>
    <td>v0.28.1</td>
  </tr>
  <tr>
    <th>Operating System</th>
    <td>Mac OSX 10.10.0</td>
  </tr>
  <tr>
    <th>ursa</th>
    <td>v0.8.5</td>
  </tr>
</tbody></table>
<p dir="auto">Hello, my app uses the native ursa module.  I just upgraded to atom-shell 0.23.0, rebuilt the ursa module and now my app is broken.  Atom-Shell v0.22.3 was working properly.</p>
<p dir="auto">Debian Linux x64, io.js@1.5.0, npm@2.7.1, node-gyp@1.0.3</p>
<p dir="auto">Here's the error I get when I launch my application:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/lib/node_modules/atom-shell/dist/atom .: symbol lookup error: /home/matt/noxious/node_modules/ursa/build/Release/ursaNative.node: undefined symbol: BN_new"><pre class="notranslate"><code class="notranslate">/usr/lib/node_modules/atom-shell/dist/atom .: symbol lookup error: /home/matt/noxious/node_modules/ursa/build/Release/ursaNative.node: undefined symbol: BN_new
</code></pre></div>
<p dir="auto">You can see my build script for the ursa module here: <a href="https://github.com/mattcollier/noxious/blob/master/build_x64.sh">https://github.com/mattcollier/noxious/blob/master/build_x64.sh</a></p>
<p dir="auto">Here is the output of the build: <a href="http://hastebin.com/asalunuxop.vhdl" rel="nofollow">http://hastebin.com/asalunuxop.vhdl</a></p>
<p dir="auto">Of course, I have changed the target to 0.23.0.</p>