Browse Source

Fix parsing issues in ssl-csr-subject() shell function

Emmanuel Bouthenot 6 years ago
parent
commit
b67ecbfa57
1 changed files with 2 additions and 1 deletions
  1. 2 1
      .zsh/config/10_alias.zsh

+ 2 - 1
.zsh/config/10_alias.zsh

@@ -139,7 +139,8 @@ ssl-csr-info() {
 ssl-csr-subject() {
     openssl req -noout -text -in $1 | \
         sed -r -n 's/^\s+Subject: (.*)/\1/p' | \
-        sed -r 's#(^|, )#/#g'
+        sed -r 's#(^|, )#/#g' |\
+        sed -r 's/\s+=\s+/=/g'
 }
 
 ssl-csr-gen() {