# SSLSocket
Add self-cert to a http website
# Installation
```bash
pip install SSLSocket
```
# Usage
1. You must have a http website like `http://localhost`, `http://127.0.0.1` or something else
2. Install this library
3. Using this code
```python3
import SSLSocket
# SSLSocket.log.setOutput(open('log.txt', 'w')) # Change output write log to `log.txt` file
# SSLSocket.log.disableError(True) # Disable Error log
# SSLSocket.log.disableError(False) # Enable Error log
# Install self-cert into system
SSLSocket.installCert()
# Replace <DOMAIN> to another domain you want, (ex: sslsocket.com)
server = SSLSocket.Server(<DOMAIN>)
# Replace IP and PORT with your http website, (ex: IP is '127.0.0.1', and Port is '8080')
server.setServer(<IP>, <PORT>)
# Start server
# In .start() you can use some arg
# http_port = (int) # Change http port (default: 80)
# https_port = (int) # Change https port (default: 443)
# delay = (int) # Delay in second before start server (default: 0)
# force_https = (bool) # Force server use https, will be redirect to https:// if user request to http://
server.start()
# Now you can browse your domain with SSL (ex: https://sslsocket.com)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/KhanhNguyen9872/SSLSocket",
"name": "SSLSocket",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "SSLSocket",
"author": "KhanhNguyen9872",
"author_email": "KhanhNguyen9872 <khanhvuinguyenvan800983609@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/fd/aa/9dcc55337b0d32b6fb75f129bb014258dc8c8b6585e58f5a075209931fb7/SSLSocket-0.0.0.7.tar.gz",
"platform": "any",
"description": "# SSLSocket\r\nAdd self-cert to a http website\r\n\r\n# Installation\r\n```bash\r\npip install SSLSocket\r\n```\r\n\r\n# Usage\r\n1. You must have a http website like `http://localhost`, `http://127.0.0.1` or something else\r\n2. Install this library\r\n3. Using this code\r\n```python3\r\nimport SSLSocket\r\n\r\n# SSLSocket.log.setOutput(open('log.txt', 'w'))\t# Change output write log to `log.txt` file\r\n# SSLSocket.log.disableError(True)\t# Disable Error log\r\n# SSLSocket.log.disableError(False)\t# Enable Error log\r\n\r\n# Install self-cert into system\r\nSSLSocket.installCert()\r\n\r\n# Replace <DOMAIN> to another domain you want, (ex: sslsocket.com)\r\nserver = SSLSocket.Server(<DOMAIN>) \r\n\r\n# Replace IP and PORT with your http website, (ex: IP is '127.0.0.1', and Port is '8080')\r\nserver.setServer(<IP>, <PORT>)\r\n\r\n# Start server\r\n# In .start() you can use some arg\r\n# http_port = (int) # Change http port (default: 80)\r\n# https_port = (int) # Change https port (default: 443)\r\n# delay = (int) # Delay in second before start server (default: 0)\r\n# force_https = (bool) # Force server use https, will be redirect to https:// if user request to http://\r\nserver.start()\r\n\r\n# Now you can browse your domain with SSL (ex: https://sslsocket.com)\r\n```\r\n",
"bugtrack_url": null,
"license": "BSD-3-Clause",
"summary": "Add self-cert to a http website",
"version": "0.0.0.7",
"project_urls": {
"Documentation": "https://github.com/KhanhNguyen9872/SSLSocket#readme",
"Download": "https://github.com/KhanhNguyen9872/SSLSocket",
"Homepage": "https://github.com/KhanhNguyen9872/SSLSocket",
"Issue Tracker": "https://github.com/KhanhNguyen9872/SSLSocket/issues",
"Source Code": "https://github.com/KhanhNguyen9872/SSLSocket"
},
"split_keywords": [
"sslsocket"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7eb490fadc3b260abfa54e1c8fd5ede0eceb77a48fb770f833ebd924141e91c8",
"md5": "5e85f22930f6b2ff0cf1371073311fd3",
"sha256": "f77d99b2e2f9fc7a7ab858d0f4c602d36ff41832491133b006c958c0438debeb"
},
"downloads": -1,
"filename": "SSLSocket-0.0.0.7-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5e85f22930f6b2ff0cf1371073311fd3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 11370,
"upload_time": "2024-08-30T14:44:40",
"upload_time_iso_8601": "2024-08-30T14:44:40.780374Z",
"url": "https://files.pythonhosted.org/packages/7e/b4/90fadc3b260abfa54e1c8fd5ede0eceb77a48fb770f833ebd924141e91c8/SSLSocket-0.0.0.7-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "fdaa9dcc55337b0d32b6fb75f129bb014258dc8c8b6585e58f5a075209931fb7",
"md5": "8e6b834f9d7626051676774afa14343a",
"sha256": "b1ad6d6ece80ed6d4532ab70a614acefaf6b6af7a615ed668d97898bcb4d602a"
},
"downloads": -1,
"filename": "SSLSocket-0.0.0.7.tar.gz",
"has_sig": false,
"md5_digest": "8e6b834f9d7626051676774afa14343a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 11478,
"upload_time": "2024-08-30T14:44:42",
"upload_time_iso_8601": "2024-08-30T14:44:42.591299Z",
"url": "https://files.pythonhosted.org/packages/fd/aa/9dcc55337b0d32b6fb75f129bb014258dc8c8b6585e58f5a075209931fb7/SSLSocket-0.0.0.7.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-30 14:44:42",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "KhanhNguyen9872",
"github_project": "SSLSocket",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "sslsocket"
}