Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Need correct command for the plackup and Thrall SSL enabling process.

by chandantul (Scribe)
on May 07, 2021 at 15:23 UTC ( [id://11132224]=perlquestion: print w/replies, xml ) Need Help??

chandantul has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Need correct command for the plackup and Thrall SSL enabling process.
by choroba (Cardinal) on May 07, 2021 at 16:06 UTC
    You should link to the previous related questions. Not everyone follows everything that happens here, some people find the questions when searching for a solution to their problems without any clues about the context. At least, help Monks not to waste their time giving answers already given in the older variants of the same question.

    Why have you decided to switch to Thrall? Do you know its SSL support depends on IO::Socket::SSL, i.e. the same module you had problems in the previous tries?

    map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

      Hello Sir, The IO::Socket::SSL was installed an i was able to genarate the self signed certifiate through IO::SOcket::SSL::UTILs tool. The issue is there is the command contains certifcate generated by IO:Socket::SSL::Utils giving Invalid argument issue and other certificate genrated by OpenSSL giving different error. I will need to know where is the issue now as the cerrificated was generated as expected by IO::Socket::SSL::UTILS

      Command for Self-Signed certifcate generated by IO::Socker::SSL::UTILS

      C:\Users\Documents\Perl\webapp\bin>plackup -p 5001 --ssl --ssl-key-fil +e=self-signedkey.key --ssl-cert-file=self-signed.crt app.psgi code> <p>Error</p> <code>failed to listen to port 5001: Invalid argument at C:/Strawberry +/perl/site/lib/HTTP/Server/PSGI.pm line 103.</

      Command for Self-Signed certifcate generated by OpenSSL

      plackup -p 5001 --ssl --ssl-key-file=C:\Users\Documents\Private-Public\privateKey0506.key --ssl-cert-file=C:\Users\Documents\Private-Public\localhost.crt app.psgi

      Error

      failed to listen to port 5001:  at C:/Strawberry/perl/site/lib/HTTP/Server/PSGI.pm line 103.

      Same command but different error. is that possible for you identify and help?

        Looking at the source of HTTP::Server::PSGI again (have you done so yet?) I can see that expects arguments named ssl_key_file and ssl_cert_file (https://metacpan.org/release/Plack/source/lib/HTTP/Server/PSGI.pm#L53). You seem to be passing the arguments with dashes instead of underscores.

        Try this:

        plackup -p 5001 -- --ssl --ssl_key_file=self-signedkey.key --ssl_cert_ +file=self-signed.crt --host localhost app.psgi

        Hope this helps!


        The way forward always starts with a minimal test.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11132224]
Approved by NetWallah
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found