vCenter: Parameter for generation of ESXi Host certificates

Hi,

is a ESXi host part of a cluster then vCenter is responsible for the generation of the host certificates.
Continue reading vCenter: Parameter for generation of ESXi Host certificates

Git: Export all versions of a file within a given time range

Hi,

in some cases I uses git repositories for versioning log files and want to export a specific logfile in all versions:

for CommitHash in `git rev-list HEAD -- myFolder/myfile`; do
    git show ${CommitHash}:myFolder/myfile > export/${CommitHash}_myfile
done

combined with given time range

git  rev-list --after="2021-08-31" --until="2021-10-10" HEAD

and the the date of a commit in the filename

git show --format=%cd -s --date=format:'%Y%m%d-%H%M%S' 8dba4dd6ef44fe0c069ec87eb179ac8f8ae2222c

This should be this one:

export File=myFolder/myfile
export ExportFolder=/tmp
for CommitHash in `git rev-list --after="2021-11-01" --until="2021-11-16" HEAD -- $File`; do
    export CommitDate=$(git show --format=%cd -s --date=format:'%Y%m%d-%H%M%S' ${CommitHash})
    export ExportFileName=${ExportFolder}/${File}_${CommitDate}_${CommitHash} 
    echo Exporting $ExportFileName  
    git show ${CommitHash}:${File} > $ExportFileName
done

Michael

ESXi: Change encryption cipher modes

Hi,

security scanners may rank the ciphers a ESXi host uses for encryption as weak.
Continue reading ESXi: Change encryption cipher modes

ESXi: Generate a new selfsigned host certificate

Hi,

usually vCenter generates the certificates for the connected ESXi hosts. This is done by the VMCA and can be triggered by the vCenter GUI => Browser to the ESXi Host -> System -> Configure -> Certificate -> Renew.

To generate a new ESXi Host certificate, which is used for https connections at TCP/443 and for the CIM service TCP/5989, a script is located in /sbin.
Continue reading ESXi: Generate a new selfsigned host certificate

ESXi: Install a custom certificate


Hi,

these are the steps to install own certificates on an ESXi host.
Continue reading ESXi: Install a custom certificate

My Knowledgebase for things about Linux, Windows, VMware, Electronic and so on…