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

localhost development for Accept/ hosted form #44

Open
sftranna opened this issue Apr 26, 2020 · 1 comment
Open

localhost development for Accept/ hosted form #44

sftranna opened this issue Apr 26, 2020 · 1 comment

Comments

@sftranna
Copy link

is there any workaround for localhost when working with hosted form or payment button.
i have a already developed a plugin using SIM module but now i wanted to upgrade this plugin to latest APIs.
i dont have an ssl enable website to test kindly share a workaround so that i can update this plugin working locally.

@aaronfranke
Copy link

Generate a self-signed certificate to use on your localhost site:

openssl req -x509 -newkey rsa:2048 -keyout mykey.key -out mycert.pem -days 365 -nodes
sudo cp mycert.pem /etc/ssl/certs
sudo cp mykey.key /etc/ssl/private
sudo a2enmod ssl
sudo nano /etc/apache2/sites-available/default-ssl.conf

Then change these values:

Then run these commands to finish up:

sudo a2ensite /etc/apache2/sites-available/default-ssl.conf
sudo service apache2 restart

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

2 participants