issue_comments: 1356633937
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/simonw/datasette/issues/1955#issuecomment-1356633937 | https://api.github.com/repos/simonw/datasette/issues/1955 | 1356633937 | IC_kwDOBm6k_c5Q3JdR | 9599 | 2022-12-18T02:28:22Z | 2022-12-18T02:28:22Z | OWNER | This !/bin/bashGenerate certificatespython -m trustme This creates server.pem, server.key, client.pemStart the server in the backgrounddatasette --memory \ --ssl-keyfile=server.key \ --ssl-certfile=server.pem \ -p 8152 & Store the background process ID in a variableserver_pid=$! Wait for the server to startsleep 2 Make a test request using curlcurl -f --cacert client.pem 'https://localhost:8152/_memory.json' Save curl's exit code (-f option causes it to return one on HTTP errors)curl_exit_code=$? Shut down the serverkill $server_pid sleep 1 Clean up the certificatesrm server.pem server.key client.pem echo $curl_exit_code exit $curl_exit_code ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
1496652622 |