<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Security Snippets on it-grossniklaus.ch</title>
    <link>https://it-grossniklaus.ch/categories/security-snippets/</link>
    <description>Recent content in Security Snippets on it-grossniklaus.ch</description>
    <generator>Hugo</generator>
    <language>de</language>
    <atom:link href="https://it-grossniklaus.ch/categories/security-snippets/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Erstellen eines CSR (openssl)</title>
      <link>https://it-grossniklaus.ch/pages/topics/security/snippets/openssl/openssl_req_csr/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/security/snippets/openssl/openssl_req_csr/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;openssl req -new -key example.com.2048.encrypted.20141118.key  -out STAR.example.com.2048.20141119.csr&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;Enter pass phrase for example.com.2048.encrypted.20141118.key:&#xA;You are about to be asked to enter information that will be incorporated&#xA;into your certificate request.&#xA;What you are about to enter is what is called a Distinguished Name or a DN.&#xA;There are quite a few fields but you can leave some blank&#xA;For some fields there will be a default value,&#xA;If you enter &#39;.&#39;, the field will be left blank.&#xA;-----&#xA;Country Name (2 letter code) [AU]:CH&#xA;State or Province Name (full name) [Some-State]:Bern&#xA;Locality Name (eg, city) []:Biel&#xA;Organization Name (eg, company) [Internet Widgits Pty Ltd]:example AG&#xA;Organizational Unit Name (eg, section) []:IT&#xA;Common Name (e.g. server FQDN or YOUR name) []:*.example.com&#xA;Email Address []:info@example.com&#xA;&#xA;Please enter the following &#39;extra&#39; attributes&#xA;to be sent with your certificate request&#xA;A challenge password []:&#xA;An optional company name []:&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;openssl req -text &lt; STAR.example.com.2048.20141119.csr     &gt; STAR.example.com.2048.20141119.csr.text&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;head -6 *.csr*&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;==&gt; STAR.example.com.2048.20141119.csr &lt;==&#xA;-----BEGIN CERTIFICATE REQUEST-----&#xA;MIICzDCCAbQCAQAwgYYxCzAJBgNVBAYTAkNIMQ0wCwYDVQQIDARCZXJuMQ0wCwYD&#xA;VQQHDARCaWVsMRMwEQYDVQQKDApleGFtcGxlIEFHMQswCQYDVQQLDAJJVDEWMBQG&#xA;A1UEAwwNKi5leGFtcGxlLmNvbTEfMB0GCSqGSIb3DQEJARYQaW5mb0BleGFtcGxl&#xA;LmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM0Ti6Vw9RS2R8JX&#xA;O+1TCRCnTAzXN5N/uZ3nfOggqBiF94s0yj03mTvKplhgL/tP2j8+rHnFe8diZy2n&#xA;&#xA;==&gt; STAR.example.com.2048.20141119.csr.text &lt;==&#xA;Certificate Request:&#xA;    Data:&#xA;        Version: 0 (0x0)&#xA;        Subject: C=CH, ST=Bern, L=Biel, O=example AG, OU=IT, CN=*.example.com/emailAddress=info@example.com&#xA;        Subject Public Key Info:&#xA;            Public Key Algorithm: rsaEncryption&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Erstellen eines RSA Keys (openssl)</title>
      <link>https://it-grossniklaus.ch/pages/topics/security/snippets/openssl/openssl_genrsa_rsa_key/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/security/snippets/openssl/openssl_genrsa_rsa_key/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;openssl genrsa -des3 -out example.com.2048.encrypted.20141118.key 2048&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;Generating RSA private key, 2048 bit long modulus&#xA;...........+++&#xA;........+++&#xA;e is 65537 (0x10001)&#xA;Enter pass phrase for example.com.2048.encrypted.20141118.key:********&#xA;Verifying - Enter pass phrase for example.com.2048.encrypted.20141118.key:*******&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;openssl rsa -in example.com.2048.encrypted.20141118.key -out example.com.2048.20141118.key&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;Enter pass phrase for example.com.2048.encrypted.20141118.key:********&#xA;writing RSA key&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;head -6 example.com.2048.*&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;==&gt; example.com.2048.20141118.key &lt;==&#xA;-----BEGIN RSA PRIVATE KEY-----&#xA;MIIEogIBAAKCAQEAzROLpXD1FLZHwlc77VMJEKdMDNc3k3+5ned86CCoGIX3izTK&#xA;PTeZO8qmWGAv+0/aPz6secV7x2JnLadSOtD8NcLUIbO0q7sT7btuMfYqnaO6A5nu&#xA;1cPkwSD33rpdsuFu63eL8aruOYMO7/n/CIdesGG4QKKMqdAyQPwZfKqvpYkfJf8m&#xA;AGU2UxwLfbIHOjdX+iY/2MA4S61NYSvEfo7zg2HfoasrHJsGxWSXLHEfu/jBbFO/&#xA;N7ynSIWUzGwzajNDdAX4hbUaWU4AMD83ie4S9W6OdmzLZnhVVuYfuoMNwPBalCUq&#xA;&#xA;==&gt; example.com.2048.encrypted.20141118.key &lt;==&#xA;-----BEGIN RSA PRIVATE KEY-----&#xA;Proc-Type: 4,ENCRYPTED&#xA;DEK-Info: DES-EDE3-CBC,D1CAE71425660625&#xA;&#xA;Y5wJn3S38OauCykLPvLuXJPlkCWhnWAUrTBTC0W15CHCyqYDJK9+scZp8Zkq3kbw&#xA;bWUx64UIFzk5gehGj3wuvv4ObAaBPf4Z91GAsN2DOzWyucoVaClsgm7C+lp855/o&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Härten des https Protokolls (SSL Offload)</title>
      <link>https://it-grossniklaus.ch/pages/topics/security/snippets/apache/hardening_https/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/security/snippets/apache/hardening_https/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;Ziel: A Rating im &lt;a href=&#34;https://www.ssllabs.com/ssltest/index.html&#34;&gt;SSL Server Test&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    SSLProtocol ALL -SSLv2 -SSLv3&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    SSLCipherSuite ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;   &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    SSLStrictSNIVHostCheck on&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Härten des https Protokolls (SSL Offload)</title>
      <link>https://it-grossniklaus.ch/pages/topics/security/snippets/haproxy/hardening_https/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/security/snippets/haproxy/hardening_https/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;Ziel: A Rating im &lt;a href=&#34;https://www.ssllabs.com/ssltest/index.html&#34;&gt;SSL Server Test&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;global&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  crt-base /etc/haproxy/ssl&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  ssl-default-bind-ciphers kEECDH+aRSA+AES:kRSA+AES:+AES256:RC4-SHA:!kEDH:!LOW:!EXP:!MD5:!aNULL:!eNULL&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;frontend  my_haproxy01_SSL_OFFLOAD_https&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  bind    *:443 ssl crt /etc/haproxy/ssl-cert-snakeoil.pem crt /etc/haproxy/ssl/ no-sslv3&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Zeige CERT unter einer IP ohne SNI (openssl)</title>
      <link>https://it-grossniklaus.ch/pages/topics/security/snippets/openssl/openssl_showcerts_ip/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/security/snippets/openssl/openssl_showcerts_ip/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;openssl s_client -showcerts -connect 77.87.229.83:443 | grep -E &#39;subject=|issuer=&#39;&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;...&#xA;subject=/C=DE/O=Bundesamt fuer Sicherheit in der Informationstechnik/OU=Referat B23/ST=NRW/L=Bonn/emailAddress=oeffentlichkeitsarbeit@bsi.bund.de/CN=www.bsi.de&#xA;issuer=/C=DE/O=T-Systems International GmbH/OU=T-Systems Trust Center/ST=Nordrhein Westfalen/postalCode=57250/L=Netphen/street=Untere Industriestr. 20/CN=TeleSec ServerPass DE-2&#xA;...&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Zeige Informationen über Zertifikat auf Webseite (nmap)</title>
      <link>https://it-grossniklaus.ch/pages/topics/security/snippets/nmap/nmap_show_certs/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/security/snippets/nmap/nmap_show_certs/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;nmap -p 443 -sV -sC gmail.google.com&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;...&#xA;PORT    STATE SERVICE  VERSION&#xA;443/tcp open  ssl/http Google httpd 2.0 (GFE)&#xA;|_http-methods: No Allow or Public header in OPTIONS response (status code 405)&#xA;| http-robots.txt: 251 disallowed entries (15 shown)&#xA;| /search /sdch /groups /images /catalogs /catalogues&#xA;| /news /nwshp /setnewsprefs? /index.html? /? /?hl=*&amp;&#xA;|_/?hl=*&amp;*&amp;gws_rd=ssl /addurl/image? /mail/&#xA;|_http-title: Site doesn&#39;t have a title (text/html; charset=ISO-8859-1).&#xA;| ssl-cert: Subject: commonName=*.google.com/organizationName=Google Inc/stateOrProvinceName=California/countryName=US&#xA;| Not valid before: 2014-11-05T11:35:52+00:00&#xA;|_Not valid after:  2015-02-03T00:00:00+00:00&#xA;|_ssl-date: 2014-11-13T22:41:34+00:00; -1s from local time.&#xA;| tls-nextprotoneg:&#xA;|   spdy/5a1&#xA;|   h2-15&#xA;|   spdy/3.1&#xA;|   spdy/3&#xA;|_  http/1.1&#xA;Service Info: OS: Linux; CPE: cpe:/o:linux:linux_kernel&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Zeige Liste der unterstützten ciphers einer Webseite (sslscan)</title>
      <link>https://it-grossniklaus.ch/pages/topics/security/snippets/sslscan/sslscan_show_ciphers/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/security/snippets/sslscan/sslscan_show_ciphers/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/rbsec/sslscan&#34;&gt;https://github.com/rbsec/sslscan&lt;/a&gt;&lt;br&gt;&#xA;sslscan tests SSL/TLS enabled services to discover supported cipher suites&lt;/li&gt;&#xA;&lt;li&gt;(old) &lt;a href=&#34;https://github.com/ioerror/sslscan&#34;&gt;https://github.com/ioerror/sslscan&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://manpages.debian.org/stretch/sslscan/sslscan.1.en.html&#34;&gt;https://manpages.debian.org/stretch/sslscan/sslscan.1.en.html&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;sslscan www.bsi.de | grep Accepted&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;Accepted  TLSv1  256 bits  ECDHE-RSA-AES256-SHA&#xA;Accepted  TLSv1  256 bits  DHE-RSA-AES256-SHA&#xA;Accepted  TLSv1  256 bits  AES256-SHA&#xA;Accepted  TLSv1  128 bits  ECDHE-RSA-AES128-SHA&#xA;Accepted  TLSv1  128 bits  DHE-RSA-AES128-SHA&#xA;Accepted  TLSv1  128 bits  AES128-SHA&#xA;Accepted  TLSv1  128 bits  RC4-SHA&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Zeige Liste der Zertifikate mit SNI (openssl)</title>
      <link>https://it-grossniklaus.ch/pages/topics/security/snippets/openssl/openssl_showcerts_sni/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/security/snippets/openssl/openssl_showcerts_sni/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;openssl s_client -showcerts -connect gmail.google.com:443 -servername gmail.com&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;...&#xA;Certificate chain&#xA; 0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=gmail.com&#xA;   i:/C=US/O=Google Inc/CN=Google Internet Authority G2&#xA;...&#xA; 1 s:/C=US/O=Google Inc/CN=Google Internet Authority G2&#xA;   i:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA&#xA;...&#xA; 2 s:/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA&#xA;   i:/C=US/O=Equifax/OU=Equifax Secure Certificate Authority&#xA;Server certificate&#xA;...&#xA;subject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=gmail.com&#xA;issuer=/C=US/O=Google Inc/CN=Google Internet Authority G2&#xA;...&#xA;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Zeige Liste der Zertifikate ohne SNI (openssl)</title>
      <link>https://it-grossniklaus.ch/pages/topics/security/snippets/openssl/openssl_showcerts_no_sni/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://it-grossniklaus.ch/pages/topics/security/snippets/openssl/openssl_showcerts_no_sni/</guid>
      <description>&lt;pre class=&#34;terminal-in w3-theme-d5 notranslate&#34;&gt;&#xA;openssl s_client -showcerts -connect www.bsi.de:443&#xA;&lt;/pre&gt;&#xA;&#xA;&lt;pre class=&#34;terminal-out w3-theme-l3 notranslate&#34;&gt;&#xA;...&#xA;Certificate chain&#xA; 0 s:/C=DE/O=Bundesamt fuer Sicherheit in der Informationstechnik/OU=Referat B23/ST=NRW/L=Bonn/emailAddress=oeffentlichkeitsarbeit@bsi.bund.de/CN=www.bsi.de&#xA;   i:/C=DE/O=T-Systems International GmbH/OU=T-Systems Trust Center/ST=Nordrhein Westfalen/postalCode=57250/L=Netphen/street=Untere Industriestr. 20/CN=TeleSec ServerPass DE-2&#xA;...&#xA;New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-SHA&#xA;Server public key is 2048 bit&#xA;Secure Renegotiation IS supported&#xA;Compression: NONE&#xA;Expansion: NONE&#xA;SSL-Session:&#xA;    Protocol  : TLSv1.2&#xA;    Cipher    : ECDHE-RSA-AES256-SHA&#xA;    Session-ID: F7FF28B085502ED75D4C34B3FF4EC830B8FC3125F7D3D763BB7546BC6BCF9800&#xA;    Session-ID-ctx:&#xA;    Master-Key: 0DBA413C657F3C02DFC4F8CACD98D7044E03923BD3F7C717CDD2A88B50AA9B4EA373E97A31354ECFA047157CDA553046&#xA;...&#xA;&lt;/pre&gt;</description>
    </item>
  </channel>
</rss>
