The hybris chrome extension is a productive utility for developers for their local system. It will save unnecessary time of logging into hac every time and navigating tabs.
Prerequisites:
Ensure that you have valid hybris certificate installed for localhost server. In case you want to install the certificate, here are the steps for the same.
A. Extract the Certificate from the Java Keystore:
The keystore configs are usually found within platform/project.properties.
tomcat.ssl.keystore.alias=1
tomcat.ssl.keystore.path=${catalina.home}/lib/keystore
tomcat.ssl.keystore.password=123456
Execute the following command on terminal (on Mac) or powershell (on Win)
keytool -exportcert -alias 1 -keystore <keystore-file> -file <output-file>
Replace <keystore-file> with the path to your keystore file i.e. ${catalina.home}/lib/keystore, and <output-file> with the path where you want to save the extracted certificate (for eg, ~/Desktop/cert.pem)
B. Import the Certificate into the Trusted Certificate Store:
macOS:
Open Keychain Access: Launch Keychain Access from the Applications folder.
Import Certificate: Drag and drop the exported certificate file (*.cer or *.pem) into the Keychain Access window.
Trust Certificate: Double-click the imported certificate to open its details. Expand the Trust section, and set the option for "When using this certificate" to Always Trust. Close the certificate details window, and you may be prompted to enter your administrator password to confirm the changes.
Clear browser cache for localhost to remove any existing certificate cache.
Windows:
Open MMC: Press Win + R, type mmc, and press Enter.
Add Snap-in: Go to File > Add/Remove Snap-in, select Certificates, click Add, choose Computer Account, and click Next.
Import Certificate: Expand Certificates > Trusted Root Certification Authorities, right-click Certificates, select All Tasks > Import, and follow the wizard to import the certificate.
Clear browser cache for localhost to remove any existing certificate cache.
FEATURES
The extension provides the following features for now.
Update running system - on click of a button only without an additional effort of logging into hac and checking/unchecking of checkboxes.
Update System JSON
The extension uses following JSON for update running system.
Note: This is only with enabled "update running system" and all other checkboxes set to false.
{
"dropTables": false,
"clearHMC": false,
"createEssentialData": false,
"localizeTypes": false,
"createProjectData": false,
"initMethod": "UPDATE"
}
Enable debug logs - on click of a button only by just entering the class reference name.
ROADMAP
Executing groovy script and flexi query directly from extension.
Config updates