Skip to content
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

Etherpad settings.json connection to Secure Mysql Database with Keys #3072

Closed
subhashdasyam opened this issue Nov 3, 2016 · 6 comments
Closed

Comments

@subhashdasyam
Copy link

Hi Guys,

I don't know if this is mentioned earlier (i quickly searched for the SSL configuration for DB settings but couldn't find), can some one point me to the settings on how to connect to a secure database with SSL cetrtificates.

Regards

@lpagliari
Copy link
Contributor

I haven't worked with SSL on DB settings, but you might find more info examining the ueber db code: https://github.com/Pita/ueberDB/blob/master/mysql_db.js

@subhashdasyam
Copy link
Author

Thanks @lpagliari for the link, i have already referred to the above link, unfortunately i was not able to find anything related to the SSL connectivity

@DanielBickley
Copy link

Once your mysql installation is configured for SSL connections, you'll probably have to hunt/peck for the connection call in the etherpad code. Edit or hook from there.

https://dev.mysql.com/doc/refman/5.5/en/using-secure-connections.html

"To establish a secure connection, use the mysql_ssl_set() C API function to set the appropriate certificate options before calling mysql_real_connect(). See Section 23.8.7.67, “mysql_ssl_set()”.

@subhashdasyam
Copy link
Author

thanks @DanielBickley i don't think i can use hook to pass the connected ssl connection, as i am new to nodejs.
If you have time, or when every you can, would you be willing to write a small example for me

Thanks in advance

Regards,

@DanielBickley
Copy link

Sorry, I don't have time, but am currently attempting a plugin that better manages database connections, mainly in an effort to see if I can assign entire etherpad databases to individual etherpad users. It's slow going, but I'll try to add in SSL connectivity as an option, and update this post at completion. I'm not entirely certain how you'd go about editing your local installation of etherpad, but if you can just do a conditional check in there to see if the pad is loaded over https, then tack on the mysql_ssl_set() or something. Just thinking aloud here.

@JohnMcLear
Copy link
Member

This is really an ueberDB request not an Etherpad thing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants