summarylogtreecommitdiffstats
path: root/vmware-hostd-certificates.service
diff options
context:
space:
mode:
authorJean-Marc Lenoir2018-09-29 13:27:04 +0200
committerJean-Marc Lenoir2018-09-29 13:27:04 +0200
commit013fc11c135dadd4f45e611e087c2c164cd76e36 (patch)
tree7c885fed26513102e5b5d5bd6f434a0785fcea3a /vmware-hostd-certificates.service
downloadaur-013fc11c135dadd4f45e611e087c2c164cd76e36.tar.gz
Initial commit.
Diffstat (limited to 'vmware-hostd-certificates.service')
-rw-r--r--vmware-hostd-certificates.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/vmware-hostd-certificates.service b/vmware-hostd-certificates.service
new file mode 100644
index 00000000000..8891ebe775e
--- /dev/null
+++ b/vmware-hostd-certificates.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=VMware Host Daemon Certificates Generation
+ConditionPathExists=|!/etc/vmware/ssl/rui.key
+ConditionPathExists=|!/etc/vmware/ssl/rui.crt
+
+[Service]
+UMask=0077
+Environment=LD_LIBRARY_PATH=/usr/lib/vmware/lib/libssl.so.1.0.1:/usr/lib/vmware/lib/libcrypto.so.1.0.1
+ExecStart=/usr/lib/vmware/bin/openssl req -x509 -days 365 -newkey rsa:2048 -sha256 -keyout /etc/vmware/ssl/rui.key -out /etc/vmware/ssl/rui.crt -config /etc/vmware/ssl/hostd.ssl.config
+Type=oneshot
+RemainAfterExit=yes