How To- Reset Domain TLS Certificate using Sqlite3 and PowerShell

How To- Reset Domain TLS Certificate using Sqlite3 and PowerShell


How To: Reset Domain TLS Certificate using Sqlite3 and PowerShell


Question

How do I reset the TLS certificate for a domain using the PowerShell API?


Answer
You can reset the domain TLS certificate via the PowerShell API by executing the appropriate command that targets the domain object and triggers a certificate renewal or reissue.


Pre-requisites

Pre install sqlite3

Steps

  1. Download the attached default certificate.
  2. Stop Titan Service in windows services management (services.msc)
  1. Press Windows Key + R
  2. Type services.msc
  3. Locate and select Titan Service
  4. Right click Titan Service and select Stop


  1. Open PowerShell with Administrator permission and run this command and get the KeyGuid

C:\sqlite3.exe "C:\ProgramData\South River Technologies\srxserver\database\lasdb.db" "SELECT * FROM nxKeys"

    

  1. Create update sql file
  1. Open Notepad
  2. Copy the query below

UPDATE nxKeys

SET document = readfile(‘Path/to/your/certificate/defaultcert.txt’) WHERE keyguid = 'KeyGuidFromStep1';

  1. Save the file as update.sql


  1. Run the sql file in PowerShell

Get-Content "path\tp\your\sql\file\update.sql" | `

& "C:\sqlite3.exe" "C:\ProgramData\South River Technologies\srxserver\database\lasdb.db" 


  1. Start the service in windows services
  1. Press Windows Key + R
  2. Type services.msc
  3. Locate and select Titan Service
  4. Right click Titan Service and select Start


  1. Open Web browser and try to access https://localhost:31443
    • Related Articles

    • How To- Reset domain Tls Certificate using PowerShell API

      How To: Reset Domain TLS Certificate using PowerShell API Question How do I reset the TLS certificate for a domain using the PowerShell API? Answer You can reset the domain TLS certificate via the PowerShell API by executing the appropriate command ...
    • How To - Create New Tls Certificate for FTP FTPS

      How To: Create New TLS Certificate for FTP/FTPS Question How do I create a new TLS certificate for securing FTP/FTPS connections? Reasoning Creating a new TLS certificate ensures encrypted and secure connections for FTP/FTPS servers, protecting data ...
    • Howto - Generate and Install Web TLS Certificate in TitanSFTP

      How To: Generate and Install Web TLS Certificate in Titan SFTP Question How To: Generate and Install TLS Certificate in Titan SFTP Reasoning Why do we need to install TLS Certificate on our HTTPS Website Answer Installing TLS and using HTTPS is ...
    • How To: List users via PowerShell, NXCLI, or SQLite

      How To: List users via PowerShell, NXCLI, or SQLite Question How to get a list of users via PowerShell, NXCLI, and/or SQLite Answer Below are the scripts that will list the users via PowerShell, NXCLI, and/or SQLite. Script for PowerShell $list = ...
    • How To - Reset Admin Account using sqllitestudiocli

      How To: Reset Admin Account using SQLliteStudio CLI Question How can you reset the admin account? Reasoning When an admin user can't log in and support ticket submission isn't possible, one way to regain access is by directly modifying or clearing ...