Monday, 19 May 2025

Traffic Parrot 5.53.1 released, what's new?

We have just released version 5.53.1. Here is a list of the changes that came with the release:

Features

  • Added new properties to performance profile settings:
    trafficparrot.virtualservice.httpRequestLoggingDisabled=true
    trafficparrot.virtualservice.accessLogsEnabled=false
    trafficparrot.virtualservice.handlebars.maxCacheEntries=10000

Thursday, 15 May 2025

Setting custom domain for Traffic Parrot HTTP mocks

 "I want to use an abc.local.excample.com domain instead of localhost to bypass the cors errors while recording. I used mkcert to generate the keys. Should this command work?
./start.sh trafficparrot.gui.https.port=21000 trafficparrot.virtualservice.https.port=21001 -Djavax.net.ssl.keyStore=~/pem/keystore.p12 
-Djavax.net.ssl.keyStorePassword=password12345678 -Djavax.net.ssl.keyStoreType=PKCS12 -Djavax.net.ssl.keyAlias=trafficparrot- Staff Engineer working for a US university.

The solution to this issue is described in the documentation in the section "Change the HTTPS server certificate." https://trafficparrot.com/documentation/5.51.x/user_guide.html

If you connect to Traffic Parrot via HTTPS it will return a self-signed certificate.

If you would like Traffic Parrot to use a different certificate for its HTTPS virtual service you can override the PrivateKeyEntry called trafficparrot in trafficparrot-x.y.z/certificates/trafficparrot-keystore.jks. The password to the JKS keystore is trafficparrot.