pd4d10/unpub

How to setup unpub as https server not http

mmarazik opened this issue · 4 comments

Hello,

I have managed to setup unpub server on a machine on our LAN and published successfully packages to it. Now I want to do the same setup but as https not http, I can't find any references to this except this pull request
#3
which is not merged.

So is there a way / guide on how to setup unpub on https?

I downloaded the code and merged the #3 PR and it worked, but on the side note this has only the path to the .pem file and the .key file is also necesary so the PR should be changed to allow both path to be added as List or something similar

Thank you for the help, but I downloaded from
https://github.com/eduardonietoc/unpub

and passed certPemPath and certKeyPath in
example/main.dart

But the server is still running on http, I mean the "server" function returns a Future

How can I make it run as https?

The problem is after Dart 2.15 I can't publish because I have to use unpub_auth which means I have to call
dart pub token add
and since 2.15 you can only use 'dart pub token add' on https, so I am trying to figure out a way to have a local unpub server running on https not http

Any help with that?

please check my previous issue here
#58

The problem was in my certificate. All working now

Thanks a mil for the help