summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-02-14 16:20:55 +0100
committermakefu <github@syntax-fehler.de>2014-02-14 16:20:55 +0100
commit5087d709327a7329516d7af43440268317e5ceff (patch)
treec2623fd9a44093bbe822a2c91b7a7f1a8cdb1b3a
parentd2ff51546f349b10b14ce5d9627c7959d39b2879 (diff)
rewrite first and csr post
-rw-r--r--content/posts/make-this-blog-post-happen.md66
-rw-r--r--content/posts/make-this-blog-post-happen.rst51
-rw-r--r--content/posts/openssl-csr-with-subject-alternative-names.md44
-rw-r--r--content/posts/openssl-csr-with-subject-alternative-names.rst51
4 files changed, 102 insertions, 110 deletions
diff --git a/content/posts/make-this-blog-post-happen.md b/content/posts/make-this-blog-post-happen.md
deleted file mode 100644
index 7fe8a6f..0000000
--- a/content/posts/make-this-blog-post-happen.md
+++ /dev/null
@@ -1,66 +0,0 @@
-Title: Make this blog post happen
-Date: 2012-02-01 13:20
-Slug: make-this-blog-post-happen
-
-<p>
-<figure class="code">
-<figcaption>
-<span>recursive</span>
-
-</figcaption>
-<div class="highlight">
-
-+--------------------------------------+--------------------------------------+
-| ``` {.line-numbers} | #?/bin/shbash -s stable < <(curl |
-| 1234567891011121314 | -s https://raw.github.com/wayneeseg |
-| ``` | uin/rvm/master/binscripts/rvm-instal |
-| | ler)echo '[[ -s $HOME/.rvm/scripts/r |
-| | vm ]] && source $HOME/.rvm/scripts/r |
-| | vm' >> ~/.zshrcsource ~/.zshrcrvm in |
-| | stall 1.9.2 && rvm use 1.9.2rvm ruby |
-| | gems latestgem install bundlergit cl |
-| | one git://github.com/imathis/octopre |
-| | ss.git octopresscd octopressbundle i |
-| | nstallrake installrake new_post\["Ma |
-| | ke this blog post happen"\]vim sourc |
-| | e/_posts/2012-02-01-make-this-blog-p |
-| | ost-happen.markdownrake generate |
-+--------------------------------------+--------------------------------------+
-
-</div>
-
-</figure>
-</p>
-
-Disclamer
-=========
-
-</p>
-
-Well, this is my first post. I will post code i am working with here.
-
-</p>
-
-Most of the code snippets will be pseudo-code ( tagged by the hash
-questionmark \#? ). The code can be seen as an digest of the `history`
-command of my shell or my texteditor.
-
-</p>
-
-Be sure not to simply copy-paste my stuff as it will most likely break
-because i haven’t tested it myself after writing this up even though it
-*looks* correct ;).
-
-</p>
-
-I will mostly not describe what this stuff does more than the head line
-and probably some tags as i think code is the only thing that matters in
-the end, everything else can be read up somewhere else.
-
-</p>
-
-I guess this blog is somewhat like `Gist` or `Command Line Kung Fu`, but
-only containing stuff important for me and my work.
-
-</p>
-
diff --git a/content/posts/make-this-blog-post-happen.rst b/content/posts/make-this-blog-post-happen.rst
new file mode 100644
index 0000000..40408c4
--- /dev/null
+++ b/content/posts/make-this-blog-post-happen.rst
@@ -0,0 +1,51 @@
+Make this blog post happen
+##########################
+:date: 2012-02-01 13:20
+:tags: ruby, octopress
+
+.. code-block:: bash
+
+ #?/bin/sh
+ bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
+ echo '[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm' >> ~/.zshrc
+ source ~/.zshrc
+ rvm install 1.9.2 && rvm use 1.9.2
+ rvm rubygems latest
+ gem install bundler
+ git clone git://github.com/imathis/octopress.git octopress
+ cd octopress
+ bundle install
+ rake install
+ rake new_post\["Make this blog post happen"\]
+ vim source/_posts/2012-02-01-make-this-blog-post-happen.markdown
+ rake generate
+
+
+Disclamer
+=========
+
+Well, this is my first post. I will post code i am working with here.
+
+
+
+Most of the code snippets will be pseudo-code ( tagged by the hash
+questionmark \#? ). The code can be seen as an digest of the `history`
+command of my shell or my texteditor.
+
+
+
+Be sure not to simply copy-paste my stuff as it will most likely break
+because i haven’t tested it myself after writing this up even though it
+*looks* correct ;).
+
+
+
+I will mostly not describe what this stuff does more than the head line
+and probably some tags as i think code is the only thing that matters in
+the end, everything else can be read up somewhere else.
+
+
+
+I guess this blog is somewhat like `Gist` or `Command Line Kung Fu`, but
+only containing stuff important for me and my work.
+
diff --git a/content/posts/openssl-csr-with-subject-alternative-names.md b/content/posts/openssl-csr-with-subject-alternative-names.md
deleted file mode 100644
index 1828666..0000000
--- a/content/posts/openssl-csr-with-subject-alternative-names.md
+++ /dev/null
@@ -1,44 +0,0 @@
-Title: OpenSSL CSR with Subject Alternative Names
-Date: 2012-02-07 09:54
-Slug: openssl-csr-with-subject-alternative-names
-
-<p>
-<figure class="code">
-<figcaption>
-<span>SAN in CSR</span>
-</figcaption>
-<div class="highlight">
-
-+--------------------------------------+--------------------------------------+
-| ``` {.line-numbers} | #?/bin/shcat > my.ncf <<EOF[ req |
-| 123456789101112131415161718192021222 | ]default_bits = 2048default_ |
-| 324252627282930 | keyfile = privkey.pemdistinguish |
-| ``` | ed_name = req_distinguished_namereq |
-| | _extensions = req_ext # The exte |
-| | ntions to add to the self signed cer |
-| | t [ req_distinguished_name ]countryN |
-| | ame = Country Name (2 lett |
-| | er code)countryName_default = DEst |
-| | ateOrProvinceName = State or Provi |
-| | nce Name (full name)stateOrProvinceN |
-| | ame_default = Upper CornerlocalityNa |
-| | me = Locality Name (eg, cit |
-| | y)localityName_default = Internetor |
-| | ganizationName = Organizati |
-| | on Name (eg, company)organizationNam |
-| | e_default = Krebs CocommonName |
-| | = Common Name (eg, YOUR name) |
-| | commonName_default = euer.krebsco |
-| | .decommonName_max = 64 [ req_ |
-| | ext ]subjectAltName = @alt_ |
-| | names [alt_names]DNS.1 = euer.kreb |
-| | sco.deDNS.2 = euerEOFopenssl req - |
-| | new -nodes -out my.csr -config my.cn |
-| | fopenssl req -noout -text -in my.csr |
-+--------------------------------------+--------------------------------------+
-
-</div>
-
-</figure>
-</p>
-
diff --git a/content/posts/openssl-csr-with-subject-alternative-names.rst b/content/posts/openssl-csr-with-subject-alternative-names.rst
new file mode 100644
index 0000000..818bf17
--- /dev/null
+++ b/content/posts/openssl-csr-with-subject-alternative-names.rst
@@ -0,0 +1,51 @@
+OpenSSL CSR with Subject Alternative Names
+##########################################
+:date: 2012-02-07 09:54
+:tags: openssl, csr, subjectAltName
+
+I had the requirement to create a certificate with a subject Alternative Name
+(additional dns names for the same host). Again it turned out not to be that
+simple. A extra configuration has to be created and the SubjectAltName can be
+added in this config for the Signing Request.
+
+We will create a private key file together with a CSR.
+
+SubjectAltName in Certificate Signing Request
+=============================================
+
+
+.. code-block:: bash
+
+ #?/bin/sh
+
+ cat > my.cnf <<EOF
+ [ req ]
+ default_bits = 2048
+ default_keyfile = privkey.pem
+ distinguished_name = req_distinguished_name
+ req_extensions = req_ext # The extentions to add to the self signed cert
+
+ [ req_distinguished_name ]
+ countryName = Country Name (2 letter code)
+ countryName_default = DE
+ stateOrProvinceName = State or Province Name (full name)
+ stateOrProvinceName_default = Upper Corner
+ localityName = Locality Name (eg, city)
+ localityName_default = Internet
+ organizationName = Organization Name (eg, company)
+ organizationName_default = Krebs Co
+ commonName = Common Name (eg, YOUR name)
+ commonName_default = euer.krebsco.de
+ commonName_max = 64
+
+ [ req_ext ]
+ subjectAltName = @alt_names
+
+ [alt_names]
+ DNS.1 = euer.krebsco.de
+ DNS.2 = euer
+ EOF
+
+ openssl req -new -nodes -out my.csr -config my.cnf
+ openssl req -noout -text -in my.csr
+