-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support external host for RC url and not only same host where installed owncloud #376
Comments
helloo and thanks for help.. currently the app repository are staled, and onlymantainer mode are setted.. in nomadays, i have same problem and in recent commits was fixed. but now the problem seems are other.. independent of u'r settings, search into http://php.net/manual/en/function.openssl-pkey-new.php and seem the problem are not still related, do u have RC and OC in same host or different host/paths? different domains? |
I cited from the other issue to continue the threatd:
due both are in different host and its a knowed issue, so about the environment, well try to configure a reverse proxy as wiki said.. and report feedback, until december 2016 i use reverse proxy (lighty) and After some time it stopped working.. about the chrooted env, maybe, but i dont think so, due i have same problem and my lighty was not chrooted! so dischard that reason.. CITED:
i paste here too the debug provided:
|
Hello, |
well if u could help to improve and solve this, i can tag now as a bug, if u need a release of the RC plugin app for OC, please take from the nighty build, or use the files under src of the roundcube directory, please also take in consideration that the code of the OC php support the OC 7 api.. for me ;-) the other issue i'll tagget as bug, but this i'll tagget as reature_request due in the wiki are well documented that both must reside in same server.. i'm very very busy now, but in the nights i'll try do all as possible to help please let me know any other needs for u and i hope u'r patch will help to main developer to return back to help us |
Hello, |
hello @mikygee thanks for contribute, i"m busy right now, i`ll revise better and commit u"r changes |
Hello, |
well men, i tested in both cases, u have right, as we discuss the method works as postded in the way u do.. great job men, i'll commit u'r changes right now... i tested with oc 7, debian 5, php 5.3.22, mysql, rc and oc in different servers using a reverse proxy: both login works, autologin and manual i tested with oc 7, debian 6, php 5.3.10, postgresql (witha very large amount of users, huge), rc and oc in same server, both autologin and manual seems to work please in what environment do u test and have it working? to paste in changelog and see if original author gets some emotion here! |
Hello Lenz, |
in the apps store please give some starts and feedback, to mke it revive this app my special case its that i have a very very enforced and secure older servers, and i dont plant to upgrade nothing that are not broken (and not hacked ever!) so this app its the only that works with oc 7 and php 5.3 |
Hello Lenz, |
me too! i' not a programmer, me too only made some small fixed to my needs! |
…owncloud but stil not with netxcloud * fix the workaround detection of the OC versions to do not break support for my OC installations * fix missing semi colon in property set L10n depending of the OC version detected so OC 9+ can maybe work * for now this commit supresed the errors in newer versions * closes #378 by modified proposed code with detection version * not working with nextcloud, proposal in issue #379 * jenkis test still not working due some ajust need for generateKeyPair(string,string) for 4 tests that fail * tested in production on OC 7 and OC 8, not tested in OC << 7 or OC >> 8.1
Openbsd: 6.0
Hello,
I have the same problem as #375
I tried to start to debug and first I'm wondering about some code
/* Create the private and public key */
$res = openssl_pkey_new($config);
And I tried to execute a php test script like
// Extract the public key from $res to $pubKey
$pubKey = openssl_pkey_get_details();
$pubKey = $pubKey["key"];
print "$pubKey\n";
And get this error
# php-5.6 /tmp/opkey.php
PHP Warning: openssl_pkey_new(): private key length is too short; it needs to be at least 384 bits, not 0 in /tmp/opkey.php on line 8
Warning: openssl_pkey_new(): private key length is too short; it needs to be at least 384 bits, not 0 in /tmp/opkey.php on line 8
PHP Warning: openssl_pkey_export(): cannot get key from parameter 1 in /tmp/opkey.php on line 11
Warning: openssl_pkey_export(): cannot get key from parameter 1 in /tmp/opkey.php on line 11
PHP Warning: openssl_pkey_get_details() expects parameter 1 to be resource, boolean given in /tmp/opkey.php on line 14
Warning: openssl_pkey_get_details() expects parameter 1 to be resource, boolean given in /tmp/opkey.php on line 14
From my understanding it would be nice if you added to your code something like
$config = array(
"digest_alg" => "sha512",
"private_key_bits" => 4096,
"private_key_type" => OPENSSL_KEYTYPE_RSA,
);
$res = openssl_pkey_new($config);
What do you think ?
The text was updated successfully, but these errors were encountered: