Revision: 8364 http://languagetool.svn.sourceforge.net/languagetool/?rev=8364&view=rev Author: dnaber Date: 2012-11-11 14:43:23 +0000 (Sun, 11 Nov 2012) Log Message: ----------- document using embedded SSL server
Modified Paths: -------------- trunk/website/www/css/style.css trunk/website/www/http-api/index.php Modified: trunk/website/www/css/style.css =================================================================== --- trunk/website/www/css/style.css 2012-11-11 14:25:57 UTC (rev 8363) +++ trunk/website/www/css/style.css 2012-11-11 14:43:23 UTC (rev 8364) @@ -56,6 +56,12 @@ padding-bottom: 10px } +.command { + background-color: #eeeeee; + padding-top: 10px; + padding-bottom: 10px +} + .xmlcode { font-family: monospace; margin-left: 15px; Modified: trunk/website/www/http-api/index.php =================================================================== --- trunk/website/www/http-api/index.php 2012-11-11 14:25:57 UTC (rev 8363) +++ trunk/website/www/http-api/index.php 2012-11-11 14:43:23 UTC (rev 8364) @@ -3,7 +3,7 @@ $sub_page = "http-api"; $title = "LanguageTool"; $title2 = "HTTP API"; -$lastmod = "2012-10-10 19:20:00 CET"; +$lastmod = "2012-11-11 19:20:00 CET"; include("../../include/header.php"); include('../../include/geshi/geshi.php'); ?> @@ -82,6 +82,31 @@ <p>You can call <tt>http://localhost:8081/Languages</tt> to get a list of all languages available.</p> +<h3>Using SSL</h3> + +<p>Starting with version 2.0, LanguageTool offers an embedded HTTPS server. It works just like the HTTP server +described above, but it only supports <tt>https</tt>. It can be started like this:</p> + +<tt>java -cp LanguageTool.jar org.languagetool.server.HTTPSServer --keystore keystore.kjs --password mypassword</tt> + +<p>To run the server you need your own SSL certificate, just like when you protect your +webserver using SSL. Assuming you have the required files in PEM format, which looks like this:</p> + +<pre> +-----BEGIN RSA PRIVATE KEY----- +(lots of random characters here) +-----END RSA PRIVATE KEY----- +</pre> + +<p>You can convert this format to the Java keystore format which LanguageTool needs with openssl and with +the <tt>keytool</tt> command that comes with Java:</p> + +<pre class="command"> +cat key crt ca.crt >server.pem +openssl pkcs12 -export -out server.p12 -in server.pem +keytool -importkeystore -srckeystore server.p12 -srcstoretype pkcs12 -destkeystore keystore.kjs -deststoretype jks +</pre> + <?php include("../../include/footer.php"); ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_nov _______________________________________________ Languagetool-commits mailing list Languagetool-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/languagetool-commits