Pencarian

Sabtu, 22 September 2018

Generate kembali sertifikat zimbra yang expire

Pas mau liat status zimbra tiba-tiba error begini :
root@mail:~# /etc/init.d/zimbra status
Unable to start TLS: SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed when connecting to ldap master.
Cannot determine services - exiting
Ternyata ssl nya sudah expired, solusinya generate baru:
-----------------
1. Begin by generating a new Certificate Authority (CA).
This step is optional and not required everytime you renew the self signed certificate.
/opt/zimbra/bin/zmcertmgr createca -new
/opt/zimbra/bin/zmcertmgr deployca
2. Then generate a certificate signed by the CA that expires in 365 days with either wildcard or subject altnames.
/opt/zimbra/bin/zmcertmgr createcrt -new -days 365
3. Next, deploy the certificate.
/opt/zimbra/bin/zmcertmgr deploycrt self 
4. To finish, verify the certificate was deployed.
/opt/zimbra/bin/zmcertmgr viewdeployedcrt
5. Restart zmcontrol to take the changes in effect.
su - zimbra zmcontrol restart
Sumber : https://wiki.zimbra.com/wiki/Regenerate_Self-Signed_SSL_Certificate_-_Single-Server

Selasa, 18 September 2018

sublime portable context menu

buat file dengan nama OpenWithSublime.bat dan isi dengan kode berikut : 
@echo off
SET st3Path=D:\Program Portable\Sublime Text Build 3\sublime_text.exe

rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3"         /t REG_SZ /v "" /d "Open with Sublime Text 3"   /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3"         /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f

rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3"         /t REG_SZ /v "" /d "Open with Sublime Text 3"   /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3"         /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
pause
Untuk path nya silahkan disesuaikan kaena sublime sy ada di D.
simpan dan klik kana Run as Administrator

windows 10 add program search

paste disini : C:\ProgramData\Microsoft\Windows\Start Menu\Programs

Kamis, 06 September 2018