Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
github.com/bosch-engineering/udp-mqtt-bridge
This repository contains a bidirectional UDP to MQTT bridge. It seamlessly translates data between UDP packets and MQTT messages, enabling interoperability between UDP and MQTT-based systems.
flowchart TD
Pruefstand --Signals--> AVL/Intime
AVL/Intime --UDP--> BridgePruefstand
BridgePruefstand --MQTT(topic/pruefstand-out)--> AWS
AWS --MQTT(topic/simulator-in)--> BridgeSimulator
BridgeSimulator --UDP--> ViGrade
ViGrade --Signals--> Simulator
Simulator--Signals--> ViGrade
ViGrade --UDP--> BridgeSimulator
BridgeSimulator --MQTT(topic/simulator-out)--> AWS
AWS --MQTT(topic/pruefstand-in)--> BridgePruefstand
BridgePruefstand --UDP--> AVL/Intime
AVL/Intime --Signals--> Pruefstand
AVL-->Intime; Intime-->BridgePruefstand; BridgePruefstand-->AWS; AWS-->BridgeSimulator; BridgeSimulator-->Simulator; Simulator-->BridgeSimulator; BridgeSimulator-->AWS; AWS-->BridgePruefstand; BridgePruefstand-->Intime; Intime-->AVL; AVL-->Pruefstand;
Create a new IoT thing:
aws iot create-thing --thing-name your-thing-name
Replace your-thing-name
with the desired name for your IoT thing.
Retrieve the AWS IoT endpoint:
aws iot describe-endpoint --endpoint-type iot:Data-ATS
This command will return the endpoint URL that your IoT device will use to communicate with AWS IoT.
Create a new certificate and keys:
aws iot create-keys-and-certificate --set-as-active --certificate-pem-outfile cert.pem --public-key-outfile public.key --private-key-outfile private.key
This command will generate a certificate and keys, and save them to cert.pem
, public.key
, and private.key
respectively.
Attach the certificate to your IoT thing:
aws iot attach-thing-principal --thing-name your-thing-name --principal arn:aws:iot:region:account-id:cert/certificate-id
Replace your-thing-name
with the name of your IoT thing, and arn:aws:iot:region:account-id:cert/certificate-id
with the ARN of the certificate created in the previous step.
Create an IoT policy (if you don't have one already):
aws iot create-policy --policy-name your-policy-name --policy-document file://policy.json
Replace your-policy-name
with the desired name for your policy, and ensure policy.json
contains the appropriate policy document.
Attach the policy to the certificate:
aws iot attach-policy --policy-name your-policy-name --target arn:aws:iot:region:account-id:cert/certificate-id
Replace your-policy-name
with the name of your policy, and arn:aws:iot:region:account-id:cert/certificate-id
with the ARN of the certificate.
Download the Amazon Root CA certificate:
wget https://www.amazontrust.com/repository/AmazonRootCA1.pem
Copy all the certificates and keys to the config/certs
directory in the project root.
Rename the certificates and keys as follows or change configuration in config.yaml
:
cert.pem
-> certificate.pem.crt
public.key
-> public.pem.key
private.key
-> private.pem.key
AmazonRootCA1.pem
-> root.pem
Update the config.yaml
file with the appropriate certificate and key filenames.
echo "{\"specversion\":\"1.0\",\"id\":\"$(uuidgen)\",\"source\":\"https://bosch-engineering.com\",\"type\":\"com.bosch-engineering.ping\",\"datacontenttype\":\"application/json\",\"data\":{\"message\":\"ping\"}}" | socat - UDP-DATAGRAM:127.0.0.1:6000
while true; do nc -u -l 6001; echo ""; done
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.