summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-03-10 09:47:07 +0100
committerGerd Hoffmann <kraxel@redhat.com>2017-03-10 09:47:07 +0100
commit752499e41c03665246d4d2a08c6fbaadbb8e10f5 (patch)
tree63400c796751e00cc2e475db0bab2e1c0357d506
parentadcfb6279d6e6950dc7c6e9dfbf33c552171ea39 (diff)
downloadfake_ilo-752499e41c03665246d4d2a08c6fbaadbb8e10f5.tar.gz
spec: fix cert generation
-rw-r--r--fake_ilo.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/fake_ilo.spec b/fake_ilo.spec
index 4674f99..897a3ba 100644
--- a/fake_ilo.spec
+++ b/fake_ilo.spec
@@ -38,7 +38,8 @@ cp fake_ilo.service %{buildroot}/usr/lib/systemd/system
if test -f "/etc/fake_ilo"; then
exit 0
fi
-subject="/C=unknown/ST=unknown/L=unknown/O=libvirt/CN=$(hostname -f)"
+set -ex
+subject="/C=UN/ST=unknown/L=unknown/O=libvirt/CN=$(hostname -f)"
openssl req -x509 -newkey rsa:2048 \
-keyout /etc/fake_ilo/server.key \
-out /etc/fake_ilo/server.crt \