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

Able to control knx rf unsecure , but getting senders as null issue in knx rf secure #143

Open
bhanujarya opened this issue Dec 23, 2024 · 0 comments

Comments

@bhanujarya
Copy link

I have successfully controlled the Unsecure calimero relay using Java 17 and latest calimero.io dependency , but when reading status of secured device i am getting senders as null , attaching my security method below

private void enableSecurity(Security security) {
		try {
			String groupAddress = "2309";
			GroupAddress addr = getGroupAddressObj(groupAddress);
			byte[] key = null;
			key = getByteArray("9PgLPd0h6kKXQvCwMfq1Uw==");
			
			Security.newSecurity().groupKeys().put(addr, key);
			IndividualAddress address = new IndividualAddress("2309");
			Set<IndividualAddress> individualSet = new HashSet<>();
			individualSet.add(address);
			security.groupSenders().put(addr, individualSet);
			security.groupKeys().put(addr, key);
			
			
			  useKeyring(Keyring.load(keyringUri), keyringPwd);
			  security.useKeyring(Keyring.load(keyringUri), keyringPwd);
			 

			

		} catch (Exception e) {
			e.printStackTrace();
			System.err.println("Exception : in securing rf " + e);
		}
	}

Please help me know how to resolve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant