diff --git a/ssl_mgmt/ssl_mgmt b/ssl_mgmt/ssl_mgmt index 082bb3d..aeba039 100755 --- a/ssl_mgmt/ssl_mgmt +++ b/ssl_mgmt/ssl_mgmt @@ -359,6 +359,7 @@ generate_cert () fi mv $keySubdir/$keyFile $keyDestDir mv $keySubdir/$keycertFile $keyDestDir + mv $certSubdir/$certFile $certDestDir fingerprint="$(openssl x509 -in "$certPath" -noout -fingerprint)" fingerprint=${fingerprint#*=} if [ -n "$notifiedUsers" -a -n "$keyId" ] @@ -379,7 +380,6 @@ generate_cert () $notifyTemplate EOF fi - mv $certSubdir/$certFile $certDestDir fi return 0 }