@@ -109,64 +109,72 @@ export default function Ledger({ loginCompleted }) {
112+ // when not on https, tell user how to get there
114+ document.location.protocol !== 'https:' ? (
116+ <H2>Running on HTTP?</H2>
119+ To authenticate and sign transactions with a Ledger, Bridge must be
120+ serving over HTTPS on localhost. You can do this via the following:
123+ <ol className="measure-md">
124+ <li className="mt-4">
126+ <a target="_blank" href="https://github.com/FiloSottile/mkcert">
130+ <li className="mt-4">
131+ Install a local certificate authority via{' '}
132+ <code>mkcert -install</code>
134+ <li className="mt-4">
135+ In your <code>bridge</code> directory, generate a certificate valid
136+ for localhost via <code>mkcert localhost</code>. This will produce
137+ two files: <code>localhost.pem</code>, the local certificate, and
138+ <code>localhost-key.pem</code> , its corresponding private key.
140+ <li className="mt-4">
141+ Run <code>python bridge-https.py</code>
148+ Connect and authenticate to your Ledger, and then open the "Ethereum"
149+ application. If you're running on older firmware, make sure the
150+ "browser support" option is turned on. To sign transactions, you'll
151+ also need to enable the "contract data" option.
155+ If you'd like to use a custom derivation path, you may enter it below.
161+ <ForwardButton className={'mt3'} onClick={pollDevice}>
167+ disabled={Maybe.Nothing.hasInstance(wallet)}
168+ onClick={loginCompleted}>
114 <H1>Authenticate With Your Ledger</H1>
176 <H1>Authenticate With Your Ledger</H1>
116− <H2>Running on HTTPS?</H2>
119− Connect and authenticate to your Ledger, and then open the "Ethereum"
120− application. If you're running on older firmware, make sure the "browser
121− support" option is turned on. To sign transactions, you'll also need to
122− enable the "contract data" option.
126− If you'd like to use a custom derivation path, you may enter it below.
129− <H2>Running on HTTP?</H2>
132− To authenticate and sign transactions with a Ledger, Bridge must be
133− serving over HTTPS on localhost. You can do this via the following:
136− <ol className="measure-md">
137− <li className="mt-4">
139− <a target="_blank" href="https://github.com/FiloSottile/mkcert">
143− <li className="mt-4">
144− Install a local certificate authority via <code>mkcert -install</code>
146− <li className="mt-4">
147− In your <code>bridge</code> directory, generate a certificate valid
148− for localhost via <code>mkcert localhost</code>. This will produce two
149− files: <code>localhost.pem</code>, the local certificate, and
150− <code>localhost-key.pem</code> , its corresponding private key.
152− <li className="mt-4">
153− Run <code>python bridge-https.py</code>
160− <ForwardButton className={'mt3'} onClick={pollDevice}>
166− disabled={Maybe.Nothing.hasInstance(wallet)}
167− onClick={loginCompleted}>