Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running sender and receiver agents on a MAC #313

Closed
Will-Cross1 opened this issue Apr 4, 2024 · 0 comments · Fixed by #318
Closed

Error when running sender and receiver agents on a MAC #313

Will-Cross1 opened this issue Apr 4, 2024 · 0 comments · Fixed by #318
Assignees
Labels
Milestone

Comments

@Will-Cross1
Copy link
Contributor

Will-Cross1 commented Apr 4, 2024

When running the sender and receiver daemon (using python bin/receiver.py -c ~/DCIG/ssm/conf/receiver.cfg and python bin/sender.py -c ~/DCIG/ssm/conf/sender.cfg)

An error response is returned, this could be because I am using a MAC with OpenSSL version 3.2.1 and pyOpenSSL 24.1.0

Sender log message:

2024-04-04 13:15:54,368 - ssmsend - INFO - ========================================
2024-04-04 13:15:54,369 - ssmsend - INFO - Starting sending SSM version 3.4.0.
2024-04-04 13:15:54,369 - ssmsend - INFO - Setting up SSM with protocol: AMS
2024-04-04 13:15:54,369 - ssmsend - INFO - No server certificate supplied.  Will not encrypt messages.
2024-04-04 13:15:54,372 - ssmsend - INFO - Messages will be signed using /C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=CommonNameOrHostname
2024-04-04 13:15:54,391 - ssm.crypto - ERROR - Warning: Reading certificate from stdin since no -in or -new option is given

SSM failed to complete successfully.  See log file for details.
2024-04-04 13:15:54,391 - ssmsend - ERROR - SSM failed to complete successfully: Cert and key don't match.
2024-04-04 13:15:54,392 - ssmsend - INFO - SSM has shut down.
2024-04-04 13:15:54,392 - ssmsend - INFO - ========================================
Traceback (most recent call last):
  File "~/DCIG/ssm/bin/sender.py", line 79, in <module>
    main()
  File "~/DCIG/ssm/bin/sender.py", line 75, in main
    ssm.agents.run_sender(protocol, brokers, project, token, cp, log)
  File "~/DCIG/ssm/ssm/agents.py", line 264, in run_sender
    if sender_failed:
UnboundLocalError: local variable 'sender_failed' referenced before assignment

Receiver log message:

2024-04-04 11:21:13,032 - ssmreceive - INFO - ========================================
2024-04-04 11:21:13,033 - ssmreceive - INFO - Starting receiving SSM version 3.4.0.
2024-04-04 11:21:13,033 - ssmreceive - INFO - Setting up SSM with protocol: AMS
2024-04-04 11:21:13,033 - ssmreceive - INFO - The SSM will run as a daemon.
2024-04-04 11:21:13,069 - ssm.crypto - ERROR - Warning: Reading certificate from stdin since no -in or -new option is given

2024-04-04 11:21:13,069 - ssmreceive - CRITICAL - Failed to initialise SSM: Cert and key don't match.
2024-04-04 11:21:13,069 - ssmreceive - INFO - ========================================

in both it has this Warning: Reading certificate from stdin since no -in or -new option is given

This is the function that is being ran:

def check_cert_key(certpath, keypath):

@Will-Cross1 Will-Cross1 changed the title Error when running receiver daemon on a MAC Error when running sender and receiver agents on a MAC Apr 4, 2024
@tofu-rocketry tofu-rocketry added this to the 3.4.1 milestone Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants