flagflag  

Some Errors in certs this afternoon over OpenSim 0.9.2.0 Yeti Dev

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 .3 .4 | Posted on 2020/4/12 3:07
Luisillo  Just can't stay away From: Spain  Posts: 80
No errors in MoneyServer console.

Errors in Opensim.exe console.

19:50:33 - [MONEY NSL RPC]: XmlRpcResponse certSend: connect to https://192.168.
1.9:8008/
19:50:34 - [MONEY NSL RPC]: XmlRpcResponse certSend: GetResponse Error: System.N
et.WebException: The underlying connection was closed: An unexpected error occur
red on a receive. ---> System.IO.IOException: Unable to read data from the trans
port connection: An existing connection was forcibly closed by the remote host.
---> System.Net.Sockets.SocketException: An existing connection was forcibly clo
sed by the remote host
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 s
ize)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 s
ize)
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 c
ount)
at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offse
t, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, I
nt32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, In
t32 count, AsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetriev
edStream, Boolean probeRead)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at NSL.Network.XmlRpc.NSLXmlRpcRequest.certSend(String url, X509Certificate2
myClientCert, Boolean checkServerCert, Int32 timeout)
19:50:34 - [MONEY]: genericCurrencyXMLRPCRequest: Unable to connect to Money Ser
ver https://192.168.1.9:8008/
19:50:34 - [MONEY]: genericCurrencyXMLRPCRequest: System.NullReferenceException:
Object reference not set to an instance of an object.
at NSL.Network.XmlRpc.NSLXmlRpcRequest.certSend(String url, X509Certificate2
myClientCert, Boolean checkServerCert, Int32 timeout)
at OpenSim.Modules.Currency.DTLNSLMoneyModule.genericCurrencyXMLRPCRequest(Ha
shtable reqParams, String method)

-------------
maybe recent changes httpserver today's git version...

kind regards,
Luisillo
Votes:50 Average:4.80
Previous post - Next post | Parent - Children.1 | Posted on 2020/4/15 4:14
Luisillo  Just can't stay away From: Spain  Posts: 80
Votes:76 Average:3.03
Previous post - Next post | Parent - No child | Posted on 2020/4/15 14:11
iseki  Home away from home   Posts: 1581
Name Space of HttpServer was changed.

Now subversion repository that includes binary is changed now.

Thanks.
Votes:47 Average:4.68
Previous post - Next post | Parent - No child | Posted on 2020/4/15 17:45
Luisillo  Just can't stay away From: Spain  Posts: 80
Using binary from repository have this error:

10:44:10 - [MONEY NSL RPC]: XmlRpcResponse certSend: connect to https://192.168.
1.9:8008/
10:44:10 - [MONEY NSL RPC]: XmlRpcResponse certSend: GetResponse Error: System.N
et.WebException: The underlying connection was closed: An unexpected error occur
red on a receive. ---> System.IO.IOException: Unable to read data from the trans
port connection: An existing connection was forcibly closed by the remote host.
---> System.Net.Sockets.SocketException: An existing connection was forcibly clo
sed by the remote host
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 s
ize)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 s
ize)
at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 c
ount)
at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offse
t, Int32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, I
nt32 count, AsyncProtocolRequest asyncRequest)
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, In
t32 count, AsyncProtocolRequest asyncRequest)
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetriev
edStream, Boolean probeRead)
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.GetResponse()
at NSL.Network.XmlRpc.NSLXmlRpcRequest.certSend(String url, X509Certificate2
myClientCert, Boolean checkServerCert, Int32 timeout)
10:44:10 - [MONEY]: genericCurrencyXMLRPCRequest: Unable to connect to Money Ser
ver https://192.168.1.9:8008/
10:44:10 - [MONEY]: genericCurrencyXMLRPCRequest: System.NullReferenceException:
Object reference not set to an instance of an object.
at NSL.Network.XmlRpc.NSLXmlRpcRequest.certSend(String url, X509Certificate2
myClientCert, Boolean checkServerCert, Int32 timeout)
at OpenSim.Modules.Currency.DTLNSLMoneyModule.genericCurrencyXMLRPCRequest(Ha
shtable reqParams, String method)

Kind regads,
Votes:74 Average:4.19
Previous post - Next post | Parent - No child | Posted on 2020/4/15 20:19
Luisillo  Just can't stay away From: Spain  Posts: 80
Ubit wrote in mantis:
http://opensimulator.org/mantis/view.php?id=8688

ok i had a bug on uri parse and validation.

as Iseki identified, the module needs a little change of use the now embeeded http server (HttpServer_OpenSim.dll is gone its code was merge(and changed) into opensim. ( another code change below)

- the prebuild.xml should also be update to .net4.6
ServicePointManager.ServerCertificateValidationCallback SHOULD NOT BE changed!!!

function ValidateServerCertificate can be split into 2
like
ValidateServerCertificateNoCert(...)
{..
if (obj is HttpWebRequest)
return true;
...
and that if removed from the other one.

then on webrequests where it reads for example:
if (!checkServerCert) request.Headers.Add("NoVerifyCert", "true");
if should
set request.ServerCertificateValidationCallback = the respective validation
(this is now possible with .net46)


without this, other uses of https will fail!( like did on older opensim versions)

(pls let Iseki get this info, if he does not read this)

and if possible the module structure should be changed to be compiled under addon-modules. That makes a lot more easy to do a integrated debug.
i did it to debug this issue...
Votes:83 Average:6.27
Previous post - Next post | Parent - Children.1 | Posted on 2020/4/16 1:16
Luisillo  Just can't stay away From: Spain  Posts: 80
From ubit: http://opensimulator.org/mantis/view.php?id=8688#c36368
---------------------
tanks,

meanwhile the code with the fix to work without HttpServer_OpenSim.dll
should work now, Several core usage of https now does survive ServicePointManager.ServerCertificateValidationCallback change.

just for future that must be reserved for main opensim use / fallback
Votes:21 Average:4.29
Previous post - Next post | Parent - Children.1 | Posted on 2020/4/16 13:15
iseki  Home away from home   Posts: 1581
Hi

Thank you for your Useful information.
Votes:43 Average:7.91
Previous post - Next post | Parent - No child | Posted on 2020/4/16 18:22
Luisillo  Just can't stay away From: Spain  Posts: 80
You are very welcome.
Votes:51 Average:4.51

  Advanced search


Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

106 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 106

more...

Access Counter

Today : 6352635263526352
Yesterday : 7722772277227722
Total : 2343783323437833234378332343783323437833234378332343783323437833
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com