Giter Club home page Giter Club logo

ethereum-secure-proxy's People

Contributors

akoscz avatar jpetendi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ethereum-secure-proxy's Issues

Ability to pass the password using an argument

I wanted to auto start the ethereum proxy but I can't because the program requires the password at the start. I tried to autofill the password using this method: https://unix.stackexchange.com/questions/286917/how-can-i-respond-to-a-prompt-within-a-shell-script-running-in-background but that doesn't work.

So is it possible to add the ability to pass the password using an argument? For example: java -jar ethereum-secure-proxy-1.2.1.jar --password mypasswd.

error using ethereum-secure-proxy-1.2.1.jar

when I use command java -jar ethereum-secure-proxy-1.2.1.jar --url http://192.168.1.31:8545 the result in cmd is this:

Using workingdirectory C:\Users\NaviD\seccoco-secured
No certfile given as argument, looking it up
No certificate found under defaultpath C:\Users\NaviD\seccoco-secured\cert.p12
No password given as argument, creating a random password
IMPORTANT: remember this password well! Without that password you will not be able to start the application again!
----------
Application password: mypassword
----------
Creating selfsigned certificate
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: java.io.IOException: exception encrypting data - java.security.InvalidKeyException: Illegal key size
        at de.petendi.commons.crypto.Certificates.create(Certificates.java:116)
        at de.petendi.commons.crypto.Certificates.create(Certificates.java:68)
        at de.petendi.seccoco.SeccocoFactory.createSelfSignedCertificate(SeccocoFactory.java:170)
        at de.petendi.seccoco.SeccocoFactory.create(SeccocoFactory.java:106)
        at de.petendi.ethereum.secure.proxy.Application.main(Application.java:100)
        ... 6 more
Caused by: java.io.IOException: exception encrypting data - java.security.InvalidKeyException: Illegal key size
        at org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.wrapKey(Unknown Source)
        at org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.doStore(Unknown Source)
        at org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.engineStore(Unknown Source)
        at java.security.KeyStore.store(Unknown Source)
        at de.petendi.commons.crypto.Certificates.create(Certificates.java:110)
        ... 10 more

and after that when I wnat to use command java -jar ethereum-secure-proxy-1.2.1.jar --url http://192.168.1.31:8545 --pw mypassword
the result is:

Using password from commandline argument - DON'T DO THIS IN PRODUCTION !!
Using workingdirectory C:\Users\NaviD\seccoco-secured
No certfile given as argument, looking it up
Found certificate under defaultpath C:\Users\NaviD\seccoco-secured\cert.p12
no public key available

above results are repeated using cmd in admin mode and using different ip addresses

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.