flagflag  

RemoteCertificateNameMismatch

  • 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 .5 .6 .7 .8 .9 .10 .11 .12 .13 | Posted on 2015/9/19 12:51
notremonde  Just popping in   Posts: 8
Hello

With Linux onn a Grid Opensim (not hyper Grid) I have this error:
When I try to buy a land or buy money I have « Can’t resolve host name »
I have also in Opensim consol: [NSL CERT VERIFY]: ValidateServerCertificate: Policy is (RemoteCertificateNameMismatch, RemoteCertificateChainErrors)
everything else working.
Thank you :)
Votes:115 Average:5.04
Previous post - Next post | Parent - No child | Posted on 2015/9/20 0:06
iseki  Home away from home   Posts: 1581
Hello

Since the information is a few, I can not say it accurate.

I guess
1. Robust Server name is not in hosts file. or
2. Robust Server name is not in DNS server. or
3. Right Certification files (both at MoneyServer and OpenSim) are not used.

I recommend to set "CheckServerCert" to false at "[Economy]" section in OpenSim.ini

Thanks
Votes:84 Average:6.43
Previous post - Next post | Parent - No child | Posted on 2015/9/20 3:04
notremonde  Just popping in   Posts: 8
Hello,

thank you for your reply.
I have: 0.8.1 for OpenSim-0.8.1 (Binaries are included. not need to compile) on Linux server.
I did: CheckServerCert = false and I don't have the error message about the certificat any more.
But still the same error, when I try to buy a land or buy currency, "couldn't resolve host name".
This message is on the viewer window you have when you buy a land or buy currency.
Here my files (I have changed host by example.com)
Thanks a lot.


------------------------------------------------------------------------------------------------
opensim.ini
-----------

[Economy]
;# {SellEnabled} {} {Enable selling for 0?} {true false} true
; The default economy module only implements just enough to allow free actions (transfer of objects, etc).
; There is no intention to implement anything further in core OpenSimulator.
; This functionality has to be provided by third party modules.

;; Enables selling things for $0. Default is true.
SellEnabled = true

CurrencyServer = "https://example.com:8008/"
EconomyModule = DTLNSLMoneyModule

;# {PriceUpload} {} {Price for uploading?} {} 0
;; Money Unit fee to upload textures, animations etc. Default is 0.
PriceUpload = 0

;# {PriceGroupCreate} {} {Fee for group creation} {} 0
;; Money Unit fee to create groups. Default is 0.
PriceGroupCreate = 100

;
;ClientCertFilename = "jogrid_region.p12"
;ClientCertPassword = ""

CheckServerCert = false
;CACertFilename = "jogrid_cacert.crt"

;
;SettlementByWeb = false
;SettlementURL = "http://www.jogrid.net"
;SettlementMessage = "Goto the settlement of accounts Web page. (Testing now)"

UserServer = "https://example.com:8008/" ;; not use localhost or 127.0.0.1


------------------------------------------------------------------------------------------------
MoneyServer.ini
-----------

[Startup]
;
; Place to create a PID file
; PIDFile = "/tmp/money.pid"


[MySql]
;
;Connection parameters of MySQL
hostname = localhost ; Name of MySQL Server
database = money
username = money
password = ********

pooling = false
port = 3306

;
; Max DB connections kept by money server.
MaxConnection = 10


[MoneyServer]
;
; If the user is not found in database,he/she will be created with the default balance.
DefaultBalance = 0

; Name of this Server
;HostName = localhost

;
; If "00000000-0000-0000-0000-000000000000" is specified, all avatars can get money from system.
; If "" is specified, nobody can get money.
BankerAvatar = "684208a-a842-4667-888e-cd09347c087e"

;
; If you want to use llGiveMoney() function normally even when payer doesn't login to OpenSim,
; please set true to this valiable
EnableForceTransfer = true

;
; send money to avatar by MoneyScript (for Bonus)
EnableScriptSendMoney = true
MoneyScriptAccessKey = "123456" ;; specify same secret key in include/config.php or WI(XoopenSim/Modlos)
MoneyScriptIPaddress = "123.123.12.123" ;; not use 127.0.0.1

;
; Message that displayed in blue dialog, when balance is updated.
; If "" is specified, blue dialog is not displayed.
; You can use {0} and {1} in message string.
; {0} means amount and {1} means avatar name or object owner name
BalanceMessageLandSale = "Paid the Money L${0} for Land." ;; for buy the land
BalanceMessageScvLandSale = "" ;; for get the money of the sold land
BalanceMessageSendGift = "Sent NM${0} to {1}." ;; for send gift to other avatar
BalanceMessageReceiveGift = "Received Gift L${0} from {1}." ;; for receieve gift from other avatar
BalanceMessagePayCharge = "" ;; for upload and group creation charge
BalanceMessageBuyObject = "Bought the Object L${0} from {1}." ;; for buy the object
BalanceMessageGetMoney = "Got the Money L${0} from {1}." ;; for get the money from object by llGiveMoney()
BalanceMessageBuyMoney = "Bought the Money L${0}." ;; for buy the money from system
BalanceMessageReceiveMoney = "Received L${0} from System." ;; for receive the money from system by send_money() script
BalanceMessageRollBack = "RollBack the Transaction: L${0} from/to {1}." ;; when roll back ocuurred


;
;
; for HTTPS Server
ServerCertFilename = "SineWaveCert.pfx"
ServerCertPassword = "123"
;ServerCertFilename = "server_cert.p12"
;ServerCertPassword = "123"

; for Client Authentication from MoneyModule
;CheckClientCert = true;
;CACertFilename = "cacert.crt"
;ClientCrlFilename = "clcrl.crt"
;

; for XML RPC Client Authentication to MoneyModule
;CheckServerCert = false;
;ClientCertFilename = "client_cert.p12"
;ClientCertPassword = ""


------------------------------------------------------------------------------------------------
robust.ini
-----------

; helper uri: optional: if it exists if will be used to tell the client to use
; this for all economy related things
;economy = ${Const|BaseURL}:${Const|PublicPort}/currency/helper/
economy = http://www.example.com/currency/helper/


------------------------------------------------------------------------------------------------
config.php (in config and include)
-----------



// Please set this hepler script URL and directory
if (!defined('ENV_HELPER_URL')) define('ENV_HELPER_URL', 'http://www.example.com/currency/helper/');
if (!defined('ENV_HELPER_PATH')) define('ENV_HELPER_PATH', '/var/www/currency/helper/');

//////////////////////////////////////////////////////////////////////////////////i
// Valiables for OpenSim

// Please set MySQL DB access information
define('OPENSIM_DB_HOST', 'localhost');
define('OPENSIM_DB_NAME', 'money');
define('OPENSIM_DB_USER', 'money');
define('OPENSIM_DB_PASS', '***********');
//
define('OPENSIM_DB_MYSQLI', true); // if you use MySQLi interface, please set true


// Money Server Access Key
// Please set same key with MoneyScriptAccessKey in MoneyServer.ini
define('CURRENCY_SCRIPT_KEY', '123456');


// Group Module Access Keys
// Please set same keys with at [Groups] section in OpenSim.ini (case of Aurora-Sim, it is Groups.ini)
define('XMLGROUP_RKEY', '1234'); // Read Key
define('XMLGROUP_WKEY', '1234'); // Write key
Votes:174 Average:4.60
Previous post - Next post | Parent - No child | Posted on 2015/9/20 10:54 | Last modified
iseki  Home away from home   Posts: 1581
Tanks for information.

Please check /etc/hosts (both Robust Server and OpenSim)
Or /etc/resolv.conf (both Robust Server and OpenSim) and your DNS Server

And, Do other functions of Money Server work correctly?
Votes:86 Average:5.81
Previous post - Next post | Parent - No child | Posted on 2015/9/20 14:41
notremonde  Just popping in   Posts: 8
Hello Iseki,

Yes everything else working. I can send and receive money from an other avatar, pay an object, and an object can send money. It's working for upload and group fees.

/etc/hosts
----------
127.0.0.1 localhost
000.000.00.000 servxxxx.zzz.com servxxxx (The IP is the server IP)

/etc/resolv.conf
----------------
domain local
search local
nameserver 000.000.00.00 (Here the IP of the provider where I rent the server)

Thank you for your help
Votes:128 Average:6.56
Previous post - Next post | Parent - No child | Posted on 2015/9/20 19:17
iseki  Home away from home   Posts: 1581
Sorry, I have no idea.
Votes:72 Average:5.42
Previous post - Next post | Parent - No child | Posted on 2015/9/20 20:30
notremonde  Just popping in   Posts: 8
A picture to show you:
http://tinyurl.com/o4jzxv9

If I click the link it can't find the path to the server so it go on:
http://currency.php/

Thank you
Votes:78 Average:6.28
Previous post - Next post | Parent - No child | Posted on 2015/9/21 11:27 | Last modified
iseki  Home away from home   Posts: 1581
>> http://tinyurl.com/o4jzxv9

This is not a dialog about "Buy Land", but this ia a dialog about "Buy Currency"
Avatar has not enough money to buy land, so a dialog about "Buy Currency" up.

If your avatar is not Banker Avatar, your avatar has to get money beforehand.

* about « Can’t resolve host name »
Please check "Helper URL" of Grid Manager of your viewer.
Votes:84 Average:3.45
Previous post - Next post | Parent - No child | Posted on 2015/9/21 17:01
notremonde  Just popping in   Posts: 8
Hello iseki
It's same probl with Buy a land:
http://tinyurl.com/oag28dw

thanks, You gave me an important information changing the helper url to test but still errors

But the message change (for buy money and land) when I change the helper URL.
If I use example.com/currency/helper/ I have : Internal server error
If I use example.com:8002/currency/helper/ I have : Error while fetching information
If I use example.com:8002/currency/helper/landtool.php I have : Error information not found

So maybe it's with this url I did an error

Thank you.
Votes:65 Average:5.23
Previous post - Next post | Parent - No child | Posted on 2015/9/21 23:18
notremonde  Just popping in   Posts: 8
I found why I had all this errors ... By default php5-xmlrpc was not installed. I did it but, it's come back at the beginning, even I set CheckServerCert = false I still have error:
[NSL CERT VERIFY]: ValidateServerCertificate: Policy is (RemoteCertificateNameMismatch, RemoteCertificateChainErrors)
And can buy a land I have the error : Unable to authentificate :o(
Votes:87 Average:5.75
Previous post - Next post | Parent - No child | Posted on 2015/9/22 2:08
iseki  Home away from home   Posts: 1581
>> [NSL CERT VERIFY]: ValidateServerCertificate: Policy is (RemoteCertificateNameMismatch, RemoteCertificateChainErrors)

This is a Warning message, but not Error message.
When "CheckServerCert = false", OpenSim ignores this warning.

You should distinguish between the "Buy Land Error" or the "Buy Currency Error"
Is it the the "Buy Land Error" ?
Votes:98 Average:4.49
Previous post - Next post | Parent - No child | Posted on 2015/9/22 2:25
notremonde  Just popping in   Posts: 8
Votes:128 Average:3.98
Previous post - Next post | Parent - No child | Posted on 2015/9/23 5:08
notremonde  Just popping in   Posts: 8
Hello,
I found the solution.
in the php soft for the error mess:
'errorMessage' => "Unable to Authenticate\n\nClick URL for more info.
the query is:
$rs=DB::Execute(sprintf('SELECT COUNT(uuid) FROM %s WHERE uuid=\'%s\' AND secureSessionID=\'%s\'',C_AGENTS_TBL,$agentid,$sessionid);
And "secureSessionID" is in robust db, but in the config.php (config and include) in helper, I had set the DB "money". So it can identify the avatar and session. Maybe I'm blind but I diddn't see anywhere it was this db to set at this place.
Anyway thank you for your help and your patience.
Votes:89 Average:4.72
Previous post - Next post | Parent - No child | Posted on 2016/6/27 11:22
jony  Just popping in   Posts: 7
Hi notremonde and Iseki San

I have the exact same problem
Money buying and selling is working fine
However when I try to see a parcel for any amount I get a Viewer error of 'Internal Server Error

notremonde I do not understand how you have resolved this in teh last post - could you explain which file and what I need to change?

Thank you in anticipation
Jony
Votes:53 Average:4.91

  Advanced search


Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthApr 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
Today

Who's Online

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

Members: 0
Guests: 95

more...

Access Counter

Today : 9995999599959995
Yesterday : 1406514065140651406514065
Total : 2335101723351017233510172335101723351017233510172335101723351017
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com