<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Security on Roman Dushko - Personal blog</title><link>https://www.rodush.com/categories/security/</link><description>Recent content in Security on Roman Dushko - Personal blog</description><image><title>Roman Dushko - Personal blog</title><url>https://www.rodush.com/images/rodush-og.png</url><link>https://www.rodush.com/images/rodush-og.png</link></image><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 17 Aug 2011 14:23:26 +0000</lastBuildDate><atom:link href="https://www.rodush.com/categories/security/index.xml" rel="self" type="application/rss+xml"/><item><title>How to generate CSR file</title><link>https://www.rodush.com/posts/2011-08-17-how-to-generate-csr-file/</link><pubDate>Wed, 17 Aug 2011 14:23:26 +0000</pubDate><guid>https://www.rodush.com/posts/2011-08-17-how-to-generate-csr-file/</guid><description>&lt;p&gt;You can generate CSR using OpenSSL:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;openssl req -newkey rsa:2048 -keyout private_key.pem -out server.csr
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;where &lt;code&gt;req&lt;/code&gt; is a command to control x.509 certificates,&lt;/p&gt;
&lt;p&gt;&lt;code&gt;-newkey&lt;/code&gt; — means &lt;em&gt;&amp;ldquo;we need a new key&amp;rdquo;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;_rsa_&lt;/code&gt; — hashing algorythm, and &lt;em&gt;2048&lt;/em&gt; — the length of a key. To sign certificates after 2010 you need at least this length! Until 2010 it was possible to use &lt;em&gt;1024&lt;/em&gt; bit key.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;-keyout&lt;/code&gt; — path to the file on the server&lt;/p&gt;</description></item></channel></rss>