Skip to main content

Posts

Showing posts from 2023

EDIT DELIVERY REPORT (PDF)

  Technical - Views Tìm report_deliver_document Chèn thêm vào cuối xml:                <div class="text-left"> -P. Kinh doanh-   </div>             <div class="offset-8"> <center>-KH Xác nhận-</center>    </div>                 <br/>                 <br/>                 "ĐÃ KÝ (e-signed)"                 <br/>                 <br/>                  <div>Tên nhân viên</div>                 <div class="offset-8"> <center>Họ và tên:..................................</center>             ...

TẠO SSL MIỄN PHÍ BẰNG LETS ENCRYPT TRÊN WINDOWS

  1. Tạo chứng chỉ tự ký trong IIS Bước này là tùy chọn. Trước khi chúng tôi yêu cầu chứng chỉ sản xuất, hãy tạo một chứng chỉ  Self-Signed Certificate  để kiểm tra xem nó có thể phục vụ các trang HTTPS từ máy chủ của bạn không. 1. Mở IIS và bấm vào nút máy chủ trong cây bên trái. 2. Chọn “Server Certificates”. 3. Nhấp vào “Create Self-Signed Certificate…” bên phải và đặt tên cho nó. 4. Đi vào trang web “Default website” trong cây bên trái. 5. Nhấp vào “Bindings…” và thêm một ràng buộc mới. 6. Chọn loại là HTTPS, port là 443 và chọn chứng chỉ tự ký của bạn từ danh sách chứng chỉ SSL, sau đó đóng cửa sổ. Bây giờ khi bạn truy cập phiên bản https của trang web, nó sẽ tải. Tuy nhiên, Google Chrome sẽ gắn cờ là không an toàn vì chứng chỉ không hợp lệ. Đây là những gì chúng tôi muốn bởi vì bây giờ chúng tôi biết rằng máy chủ web đã được thiết lập để cho phép kết nối HTTPS. Chúng tôi đã sẵn sàng để tiến hành. Nếu trang web không tải hoặc tiếp tục quay, hãy ki...

CẤU HÌNH BẬT SSL VÀ REDIRECT HTTPS ODOO BẰNG IIS

CẤU HÌNH BẬT SSL VÀ REDIRECT HTTPS ODOO BẰNG IIS Source:  https://shyju.wordpress.com/2019/04/10/enable-iis-redirect-and-https-for-odoo-on-windows-server/ https://www.ssl.com/how-to/redirect-http-to-https-with-windows-iis-10/ 1. DOWNLOAD VÀ CÀI ĐẶT: Microsoft Application Request Routing 3.0 (x64) URL Rewrite 2. CẤU HÌNH PROXY Enable Proxy Open IIS Management console >> application request routing Open proxy settings Enable Proxy 3. CẤU HÌNH REVERSE PROXY RULE Lưu ý: khi tạo xong rule nhờ " move up " redirect rule lên trên reverse proxy rule nhé Setup a Reverse Proxy rule using the Wizard. Open the IIS Manager Console and click on the Default Web Site from the tree view on the left. Select the URL Rewrite Icon from the middle pane, and then double click it to load the URL Rewrite interface. Chose the ‘Add Rule’ action from the right pane of the management console, and the select the ‘Reverse Proxy Rule’ from the ‘Inbound and Outbound Rules’ category. Now we can proceed t...

EXTRACT PRIVATE KEY AND CRT FROM PFX FILE

  Information To extract separate Certificate and Private key files from the  *.pfx  file follow the procedure below: Download and extract the Win32  OpenSSL  package to C:\ directory. Open a command prompt, and move to the  OpenSSL-Win32\bin  directory, using: cd C:\OpenSSL\bin Execute the following command to export Private Key file: openssl pkcs12 -in [yourfile.pfx] -nocerts -out [keyfile-encrypted.key] Then remove the passphrase from the Private Key openssl rsa -in [keyfile-encrypted.key] -out [keyfile-decrypted.key] Export certificate file: openssl pkcs12 -in [yourfile.pfx] -clcerts -nokeys -out [certificate.crt]

LỖI Hyper-V encountered an error trying to access an object on computer ‘localhost’ because the object was not found

 Hyper-V gặp lỗi trống giao diện quản lý VM dù rằng các service và VM vẫn start lên bình thường. Run the following command from an Elevated (Administrator) command prompt or PowerShell.  Winkey+X >>  Windows PowerShell ( A dmin) MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof Nguyên nhân: có thể do install hoặc remove 1 phần mềm nào đó gây ra hư hỏng Source: https://shauncassells.wordpress.com/2018/05/24/fix-hyper-v-encountered-an-error-trying-to-access-an-object-on-computer-localhost-because-the-object-was-not-found-the-object-might-have-been-deleted-verify-that-the-virtual-machine-managemen/

SHRINK Ổ ĐĨA VMWARE

  SHRINK Ổ ĐĨA VMWARE Source:  https://kingtam.win/archives/vmdk-shrink.html Dùng lệnh  cd  vào thư mục chứa file ví dụ:  cd  /vmfs/volumes/652a35e3-852aa600-7ec9-d4f5ef622278/PC-TEST1 Vào phần quản lý datastore tìm đường dẫn chính xác như hình bên dưới, lưu ý có  phân biệt chữ hoa chữ thường Dùng lệnh  vi  để edit file ổ cứng ví dụ:  vi PC-TEST1.vmdk Để ý phần con số sau chữ RW, đây là dung lượng tính theo bit 167.772.160  =  80  * (2 * 1.024 * 1024)  => ổ 80GB Để giảm còn 60GB, nghĩa là:  167.772.160  -  20  * (2 * 1.024 * 1024) =  125.829.120 Cập nhật số này vào file, save lại là xong. Tìm hiểu thêm bộ lệnh vi editor $ vi <filename> — Open or edit a file. i — Switch to Insert mode. Esc — Switch to Command mode. :w — Save and continue editing. :wq or ZZ — Save and quit/exit vi. :q! — Quit vi and do not save changes. yy — Yank (copy) a line of text. p — Paste a line of yanked text be...

Dùng GPO tự động backup folder Document, Desktop ... vào One Drive

  Silently move Windows known folders to OneDrive Source:  https://learn.microsoft.com/en-us/sharepoint/use-group-policy  Use this setting to redirect and move your users' Documents, Pictures, and/or Desktop folders to OneDrive without any user interaction.  Note We recommend deploying the silent policy for existing devices and new devices while limiting the deployment of existing devices to 1,000 devices a day and not exceeding 4,000 devices a week. We also recommend using this setting together with  Prompt users to move Windows known folders to OneDrive . If moving the known folders silently doesn't succeed, users will be prompted to correct the error and continue.  See all our recommendations for configuring the sync app. You can move all folders at once or select the folders you want to move. After a folder is moved, this policy won't affect that folder again, even if you uncheck the checkbox for the folder. If you enable this setting and provide your t...