Open artkpv opened 4 years ago
@artkpv Are you able to access the web api via a web browser with no certificate errors? I'm not too familiar with how certs are handled on linux, but my guess would be that the self-signed cert for the web api is not trusted.
@tlmii Firefox v73 disables certification check for localhost by default so yes, it accesses the api. Looks like I need to issue a certificate for localhost and make HttpRepl use it.
BTW, curl also works only if I disable security checks (-k
switch).
I'm facing the same issue, but even after trusting my local certificate (i.e. curl works without -k
) I still get this exception with httprepl
@kipters were you able to resolve this per the workaround @artkpv mentioned?
@bradygaster I ended up generating a new cert and using that one instead of the one generated by netcore itself for my server, using this one everything works as expected:
#!/bin/bash
if [[ "$1" != "" ]]; then
CERTNAME="$1"
else
CERTNAME=cert
fi
openssl req -x509 -newkey rsa:4096 -keyout ${CERTNAME}_key.pem -out $CERTNAME.pem -days 365
openssl pkcs12 -export -out $CERTNAME.pfx -inkey ${CERTNAME}_key.pem -in $CERTNAME.pem
openssl pkcs12 -in $CERTNAME.pfx -clcerts -nokeys -out $CERTNAME.crt
@kipters and @tlmii - I tried this in an effort to validate if this trick would also fix my issue in which i'm seeing the repl be unable to get to the actual swagger JSON URL. it's there, and I can call it, but just like I showed @tlmii with the Tye demo, I can't access my swagger endpoint when i'm running SSL.
@bradygaster I removed the waiting tag since we're not waiting on a customer - do we need to do anything else here? I can't remember if you ended up unblocked or not.
Hello, I'm having this error when running under ArchLinux. Created a project "webapi" under dotnet 3.1,
dotnet new webapi
. Run it withdotnet run
. Then I connect to it using HttpRepl and it throws this exception. How to fix?Environment: