p-acs / ethereum-secure-proxy Goto Github PK
View Code? Open in Web Editor NEWend to end encryption for your Ethereum node
License: GNU Affero General Public License v3.0
end to end encryption for your Ethereum node
License: GNU Affero General Public License v3.0
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
.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.