Giter Site home page Giter Site logo

Comments (10)

drk1wi avatar drk1wi commented on August 20, 2024 1

If you are using the cmd line parameteres, then you will have to : -cert cat cert.b64 -certKey cat privkey.b64. Config files are more convenient to use.

from modlishka.

drk1wi avatar drk1wi commented on August 20, 2024

This will be changed in the next release to read the certificates from a file.

from modlishka.

samraddha avatar samraddha commented on August 20, 2024

when i execute this command ./dist/proxy -config templates/google.com_gsuite.json
i get following error
panic: tls: failed to find any PEM data in certificate input

goroutine 1 [running]:
github.com/drk1wi/Modlishka/plugin.init.0.func1()
/root/go/src/github.com/drk1wi/Modlishka/plugin/autocert.go:103 +0xc0a
github.com/drk1wi/Modlishka/plugin.(*Property).Enable(0xc000062300)
/root/go/src/github.com/drk1wi/Modlishka/plugin/core_plugin.go:71 +0xef
github.com/drk1wi/Modlishka/plugin.Enable(0xc000054c50, 0xc000054c60, 0xc000054c70, 0xc000054c80, 0xc000054c90, 0xc000054cc0, 0xc000054cd0, 0xc000054ca0, 0xc000054cb0, 0xc000054ce0, ...)
/root/go/src/github.com/drk1wi/Modlishka/plugin/core_plugin.go:105 +0x11a
main.main()
/root/go/src/github.com/drk1wi/Modlishka/main.go:65 +0x149
please tell me how to solve this error and start modlishka

from modlishka.

filebe777 avatar filebe777 commented on August 20, 2024

same here...im using kali ....result below
root@kali:~/go/src/github.com/drk1wi/Modlishka# sudo ./dist/proxy -config templates/google.com_gsuite.json
[Tue Mar 12 15:15:11 2019] INF Enabling plugin: autocert v0.1
panic: tls: failed to find any PEM data in certificate input

goroutine 1 [running]:
github.com/drk1wi/Modlishka/plugin.init.0.func1()
/root/go/src/github.com/drk1wi/Modlishka/plugin/autocert.go:105 +0xc0a
github.com/drk1wi/Modlishka/plugin.(*Property).Enable(0xc00006a300)
/root/go/src/github.com/drk1wi/Modlishka/plugin/core_plugin.go:71 +0xef
github.com/drk1wi/Modlishka/plugin.Enable(0xc00002cc60, 0xc00002cc70, 0xc00002cc80, 0xc00002cc90, 0xc00002cca0, 0xc00002ccd0, 0xc00002cce0, 0xc00002ccb0, 0xc00002ccc0, 0xc00002ccf0, ...)
/root/go/src/github.com/drk1wi/Modlishka/plugin/core_plugin.go:105 +0x11a
main.main()
/root/go/src/github.com/drk1wi/Modlishka/main.go:65 +0x18f

from modlishka.

c4udex avatar c4udex commented on August 20, 2024

I am using windows.
When I put the command ./dist/proxy -config......

In cmd, says doesnot recognised as internal or external command..

Use make windows to build it for windows and it will drop a proxy_windows file into the dist folder. Rename it to proxy_windows.exe and it will work.

Make sure to edit your command to ./dist/proxy_windows.exe or, because windows is smart, ./dist/proxy_windows.

from modlishka.

AnonyIND avatar AnonyIND commented on August 20, 2024

./dist/proxy -config templates/google.com_gsuite.json

listen tcp 0.0.0.0:443: bind: permission denied . Terminating.
How to fix ?

from modlishka.

morenikejiolawaletimothy avatar morenikejiolawaletimothy commented on August 20, 2024

tls: failed to find any PEM data in certificate input . Terminating.

Remove all the brakes on your fullchain.pem and privkey.pem before adding it to your modlishka.json file. that is make your fullchain.pem and privkey.pem be on a straight line.

from modlishka.

mdkiev0 avatar mdkiev0 commented on August 20, 2024

when i execute this command ./dist/proxy -config templates/google.com_gsuite.json
i get following error
panic: tls: failed to find any PEM data in certificate input

goroutine 1 [running]:
github.com/drk1wi/Modlishka/plugin.init.0.func1()
/root/go/src/github.com/drk1wi/Modlishka/plugin/autocert.go:103 +0xc0a
github.com/drk1wi/Modlishka/plugin.(*Property).Enable(0xc000062300)
/root/go/src/github.com/drk1wi/Modlishka/plugin/core_plugin.go:71 +0xef
github.com/drk1wi/Modlishka/plugin.Enable(0xc000054c50, 0xc000054c60, 0xc000054c70, 0xc000054c80, 0xc000054c90, 0xc000054cc0, 0xc000054cd0, 0xc000054ca0, 0xc000054cb0, 0xc000054ce0, ...)
/root/go/src/github.com/drk1wi/Modlishka/plugin/core_plugin.go:105 +0x11a
main.main()
/root/go/src/github.com/drk1wi/Modlishka/main.go:65 +0x149
please tell me how to solve this error and start modlishka

the same problem, how to fix this ?
ten sam problem, jak sobie z nim poradzic ?

from modlishka.

 avatar commented on August 20, 2024

WHEN I ENTER THIS COMMAND - ./dist/proxy -config templates/google.com_gsuite.json

I got this error ... I tried more than 20 times

There is no solution for me

panic: tls: failed to find any PEM data in certificate input

goroutine 1 [running]:
github.com/drk1wi/Modlishka/plugin.init.0.func1()
/root/go/src/github.com/drk1wi/Modlishka/plugin/autocert.go:103 +0xc0a
github.com/drk1wi/Modlishka/plugin.(*Property).Enable(0xc000062300)
/root/go/src/github.com/drk1wi/Modlishka/plugin/core_plugin.go:71 +0xef
github.com/drk1wi/Modlishka/plugin.Enable(0xc000054c50, 0xc000054c60, 0xc000054c70, 0xc000054c80, 0xc000054c90, 0xc000054cc0, 0xc000054cd0, 0xc000054ca0, 0xc000054cb0, 0xc000054ce0, ...)
/root/go/src/github.com/drk1wi/Modlishka/plugin/core_plugin.go:105 +0x11a
main.main()
/root/go/src/github.com/drk1wi/Modlishka/main.go:65 +0x149

PLEASE HELP ME !!!! TO START USING MODLISHKA TOOLS !!!! PLEASE

from modlishka.

danicastone avatar danicastone commented on August 20, 2024

WHEN I ENTER THIS COMMAND - ./dist/proxy -config templates/google.com_gsuite.json

I got this error ... I tried more than 20 times

There is no solution for me

panic: tls: failed to find any PEM data in certificate input

goroutine 1 [running]:
github.com/drk1wi/Modlishka/plugin.init.0.func1()
/root/go/src/github.com/drk1wi/Modlishka/plugin/autocert.go:103 +0xc0a

Looks like line 103 in autocert.go is where it takes whatever's in CA_CERT, and assigns it to a variable for the certificate. You need to open autocert.go and check what you pasted in under:

// Paste your CA certificate and key in the following format
// Ref: https://github.com/drk1wi/Modlishka/wiki/Quickstart-tutorial
const CA_CERT =

It comes with a fake certificate filled in already, as an example. If you did not delete that, you need to delete it and replace it with your actual certificate data. If you did that already, you need to check what you pasted in, and make sure it's correct and doesn't contain any weird spaces or errors.

from modlishka.

Related Issues (20)

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.