summaryrefslogtreecommitdiffstats
path: root/MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.cmd
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-05-01 11:48:45 +0200
committermadmaxoft <github@xoft.cz>2014-05-01 11:48:45 +0200
commitcf821bc9a4b156d6ffb8a79502936a1de36bb074 (patch)
tree0727c99d6c54d0a96cc7c82cef26c8acb33ebdfb /MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.cmd
parentImplemented SSL connection for WebAdmin. (diff)
downloadcuberite-cf821bc9a4b156d6ffb8a79502936a1de36bb074.tar
cuberite-cf821bc9a4b156d6ffb8a79502936a1de36bb074.tar.gz
cuberite-cf821bc9a4b156d6ffb8a79502936a1de36bb074.tar.bz2
cuberite-cf821bc9a4b156d6ffb8a79502936a1de36bb074.tar.lz
cuberite-cf821bc9a4b156d6ffb8a79502936a1de36bb074.tar.xz
cuberite-cf821bc9a4b156d6ffb8a79502936a1de36bb074.tar.zst
cuberite-cf821bc9a4b156d6ffb8a79502936a1de36bb074.zip
Diffstat (limited to 'MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.cmd')
-rw-r--r--MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.cmd9
1 files changed, 9 insertions, 0 deletions
diff --git a/MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.cmd b/MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.cmd
new file mode 100644
index 000000000..5257e1bd6
--- /dev/null
+++ b/MCServer/webadmin/GenerateSelfSignedHTTPSCertUsingOpenssl.cmd
@@ -0,0 +1,9 @@
+echo This script generates the certificate and private key for the https webadmin
+echo Note that the generated certificate is self-signed, and therefore not trusted by browsers
+echo Note that this script requires openssl to be installed and in PATH
+echo.
+echo When OpenSSL asks you for Common Name, you need to enter the fully qualified domain name of the server, that is, e. g. gallery.xoft.cz
+echo.
+
+openssl req -x509 -newkey rsa:2048 -keyout httpskey.pem -out httpscert.crt -days 3650 -nodes
+pause \ No newline at end of file