MQTT test using a mosquitto_sub command error

So in my journey to get OwnTracks working on my Raspberry Pi, I have installed MQTT and have gotten all the TLS certs setup properly I believe. however, it’s giving me an error: “Error: MQTT Error: MQTTException”. When I run mosquitto_sub -h localhost -t test to test mosquitto, and it gives “Connection error: Connection Refused: not authorised.”
From everything that I can tell this has nothing to do with OwnTracks, but I can’t figure out what I did wrong with Mosquitto to get it fixed. I’m assuming something with a config file but like I said I can’t find anything wrong. Feel free to ask for more info

My mosquitto/mosquitto.conf file:

# Place your local configuration in /etc/mosquitto/conf.d/
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.gz

pid_file /run/mosquitto/

persistence true
persistence_location /var/lib/mosquitto/

log_dest file /var/log/mosquitto/mosquitto.log

include_dir /etc/mosquitto/conf.d

password_file /etc/mosquitto/passwd

My mosquitto/conf.d/default.conf file:

allow_anonymous false

log_dest syslog
log_dest stdout
log_dest topic
log_type error
log_type warning
log_type notice
log_type information
connection_messages true
log_timestamp true

listener 1883 localhost

listener 8883
certfile /etc/mosquitto/certs/cert.pem
cafile /etc/mosquitto/certs/chain.pem
keyfile /etc/mosquitto/certs/privkey.pem

listener 8083
protocol websockets
certfile /etc/mosquitto/certs/cert.pem
cafile /etc/mosquitto/certs/chain.pem
keyfile /etc/mosquitto/certs/privkey.pem

require_certificate true
use_identity_as_username true

nvm, figured it out. something to do with copying the wrong CA cert. :crazy_face: