I have strange problem. I have enabled SSL in my provider settings. I am using Let's encrypt certificate. But I cannot enable https in prestashop backoffice. If I check Enable SSL button to Yes and click save, following error shows up:
Fatal error: Uncaught Error: Access to undeclared static property: Validate::$values in /home/www/vozikyprozivot.cz/www/vozikyprozivot.cz/classes/controller/AdminController.php:1026 Stack trace: #0 /home/www/vozikyprozivot.cz/www/vozikyprozivot.cz/classes/controller/AdminController.php(581): AdminControllerCore->processUpdateOptions() #1 /home/www/vozikyprozivot.cz/www/vozikyprozivot.cz/classes/controller/Controller.php(158): AdminControllerCore->postProcess() #2 /home/www/vozikyprozivot.cz/www/vozikyprozivot.cz/classes/Dispatcher.php(348): ControllerCore->run() #3 /home/www/vozikyprozivot.cz/www/vozikyprozivot.cz/admin16/index.php(53): DispatcherCore->dispatch() #4 {main} thrown in /home/www/vozikyprozivot.cz/www/vozikyprozivot.cz/classes/controller/AdminController.php on line 1026
I tried to force enable redirect http to https in .htaccess file, but with no luck.
Can you help please?
Thanks a lot.
Eduard
Web Hosting company should mix something to your php
Like this at settings.inc.php
if( isset($_SERVER['HTTP_X_FORWARDED_PROTO']) ) {
$_SERVER['HTTPS'] = 'on';
$_SERVER['SERVER_PORT'] = 443;
}
Related
I prepared server ubuntu like from docs. I created SSL cert to my domin and i have open required ports. I installed red5pro in to /usr/local/red5pro/ and server fine. When i will go to http://example.com:5080/ i can see home page red5pro and is ok. But when i click on broadcast i have a info: No suitable Publisher found. WebRTC & Flash not supported. Ok, maybe because is http not https. I decided create test index page in to /var/www/test/index.html and i have basic configuration like:
var config = {
protocol: 'wss',
host: 'example.com',
port: 443,
app: 'live',
streamName: 'abccaccaa',
rtcConfiguration: {
iceServers: [{urls: 'stun:stun2.l.google.com:19302'}],
iceCandidatePoolSize: 2,
bundlePolicy: 'max-bundle'
} // See https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection#RTCConfiguration_dictionary
};
And now when i try broadcast have an info: WebSocket connection to 'wss://example.com/live/?id=abccaccaa' failed: Error during WebSocket handshake: Unexpected response code: 404
Looks like have no example.com/live and cant figure out what is wrong :( since 2 days. Maybe someone could give me an advice ? Or alternative on other application than red5pro
I have Odoo 8 installed with Nginx https enabled, How can I connect to the web api securely?, the following code raise an error (Access denied), is this the right way to deal with https connection?
How connect using python:
url = 'https://mydomain'
ws_common = xmlrpclib.ServerProxy('{}/xmlrpc/common'.format(url))
ws_common.login(dbname, username, pwd)
Server Side Error Log:
openerp.service.common: bad login or password from 'sam#sam.com' using database 'db1'
Client side error Log:
File "/usr/lib/python2.7/xmlrpclib.py", line 800, in close
raise Fault(**self._stack[0])
xmlrpclib.Fault: <Fault 3: 'Access denied.'>
Odoo Configuration:
xmlrpc_port = 9004
host = mydomain
url = https://mydomain
According to this page http://www.rebol.com/docs/ssl.html https is supported
but when trying with https://dzone.com I got this error
** Access Error: Invalid port spec: https://dzone.com
** Near: read https://dzone.com
The documentation page you linked especially mentions Rebol/View requirement for SSL support:
This feature is now available in REBOL/View as of 2.7.7.
I'm trying to configure rsyslog tls with relp but keep getting errors.
I'm using RHEL 7.2 with rsyslog 8.15.
I do manage to send messages using relp + tls but without using the certificates. When I'm adding the certificates I'm getting the following error:
Jan 20 11:00:17 ip-10-0-0-114 rsyslogd-2353: imrelp[514]: error 'Failed to set certificate trust files [gnutls error -64: Error while reading file.]', object 'lstn 514' - input may not work as intended [v8.15.0 try http://www.rsyslog.com/e/2353 ]
Jan 20 11:00:17 ip-10-0-0-114 rsyslogd-2291: imrelp: could not activate relp listner, code 10031 [v8.15.0 try http://www.rsyslog.com/e/2291 ]
Server conf:
module(load="imrelp" ruleset="relp")
input(type="imrelp" port="514" tls="on"
tls.caCert="/home/ec2-user/rsyslog/ca.pem"
tls.myCert="/home/ec2-user/rsyslog/server-cert.pem"
tls.myPrivKey="/home/ec2-user/rsyslog/server-key.pem"
tls.authmode="name"
tls.permittedpeer=["client.example.co"]
)
ruleset(name="relp") {
action(type="omfile" file="/var/log/relptls2")
}
The following is the client configuration:
module(load="omrelp")
action(type="omrelp" target="10.0.0.114" port="514" tls="on"
tls.caCert="/home/ec2-user/rsyslog/ca.pem"
tls.myCert="/home/ec2-user/rsyslog/client-cert.pem"
tls.myPrivKey="/home/ec2-user/rsyslog/client-key.pem"
tls.authmode="name"
tls.permittedpeer=["server.example.co"]
)
When I remove the tls cert fields from the server configration I get client error:
Jan 20 10:35:29 ip-10-0-0-206 rsyslogd-2353: omrelp[10.0.0.114:514]:
error 'Failed to set certificate trust file [gnutls error -64: Error
while reading file.]', object 'conn to srvr 10.0.0.114:514' - action
may not work as intended [v8.15.0 try http://www.rsyslog.com/e/2353 ]
Help would be really really appreciated as I'm stack with this for long time.
Thanks!!!!
The gnutls error -64: Error while reading file error message means either:
The certificates actual path is different from what is in the
configuration file
Rsyslog service cannot read the certificates
because of permission problem
In case of permission issue you may move the certificates under /etc/rsyslog.d
In case of path issue, just fix the path :)
How to make sure SSL is enabled properly on Active Directory server?
On server itself if I run ldp, I think I can connect on 636 port.
I see something like this in output:
ld = ldap_sslinit("localhost", 636, 1);
Error <0x0> = ldap_set_option(hLdap, LDAP_OPT_PROTOCOL_VERSION, LDAP_VERSION3);
Error <0x0> = ldap_connect(hLdap, NULL);
Error <0x0> = ldap_get_option(hLdap,LDAP_OPT_SSL,(void*)&lv);
Host supports SSL, SSL cipher strength = 128 bits
Established connection to localhost.
Retrieving base DSA information...
Result <0>: (null)
Matched DNs:
Getting 1 entries:
>> Dn:
**** and 10-12 more lines ****
Does this mean SSL is enabled properly?
What about errors in 2-4 lines?
Thanks.
Yes, SSL was enabled.
URLs provided by me in comments have more details.