-
Notifications
You must be signed in to change notification settings - Fork 148
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
TLS callhome : Getting error as "server certificate not set" #440
Comments
You must not change the YANG modules, obviously. If you want to use netopeer2, you must use the YANG revisions shipped with it. We are working on a major update that is using the |
Hi michal, we didn't changed the yang, we are using the revision 2020-08-20. In example_configuration, after server-identity node certificate is not present as below.
so we added in our scripts and configured. we are facing issue in fetching endpoint name as mentioned earlier. could you please let us know, is the attached configurations was fine or not and is the same was handled in code also? |
Yes, you did, netopeer2 uses |
Hi Michal,
Could you please let us know when this update will be available? |
Based on how the work has been progressing, it should be merged into |
Hi Michal, is the major update merged into libnetconf2 and netopeer2? |
Unfortunately, there were several final changes required so not yet and I cannot tell you when it will. |
Hi Michal, Please let us know once the major update merged into libnetconf2 and netopeer2. |
Actually, it has been merged on Friday into |
Hi Michal, we tried to build devel branch of netopeer2 and observed below error: libyang error: Unsatisfied pattern - "" does not conform to "$0$.|$1$[a-zA-Z0-9./]{1,8}$[a-zA-Z0-9./]{22}|$5$(rounds=\d+$)?[a-zA-Z0-9./]{1,16}$[a-zA-Z0-9./]{43}|$6$(rounds=\d+$)?[a-zA-Z0-9./]{1,16}$[a-zA-Z0-9./]{86}". (Data location "/ietf-netconf-server:netconf-server/listen/endpoint[name='default-ssh']/ssh/ssh-server-parameters/client-authentication/users/user[name='root']/password", line number 27.) Could you please share your comments on this? |
Hi, there is currently an issue with the install script. However, calling |
Hi, should be fixed in the latest devel of netopeer2. |
Hi, When the major yang update will be available in master branch |
Once we feel it is tested and stable enough. Will be at least a few weeks. |
Hi Michal, we are trying to use libnetconf2 devel branch. During build we are observed below errors. ../libnetconf2.so.4.0.1: undefined reference to Could you please help us to fix these errors. |
Please remove all your files in |
Yes we are using openssl-3.0.0,libssh-0.9.5 and curl -7.38.0. |
That is strange, can you provide the output of |
Hi Michal, Please find the output of ldconfig -p | grep libssl
|
Yes, you seem to have both versions 3 and 1 installed and libnetconf2 was probably linked with the wrong one. I suggest removing the old version or force usage of the version 3 using CMake variables. |
Hi Michal,
When the latest yang update will be available in master branch |
I am hoping we will make it still this year, otherwise early next year. |
Hi Michal, could you please let us know the approximate timeline for latest yang updates in master branch. |
Well, there are a few things left to do that should make it into the release, in a few-weeks-time probably. |
Hi Michal, Is that yang updates are released in master branch? |
Yes, the latest release includes them. |
Hi Team,
We are testing TLS callhome feature with netopeer2-server 2.1.42 & netopeer2-cli 2.0.68.
While pushing tls_listen we are facing issue as below
[INF]: LN: Listening on 0.0.0.0:6513 for TLS connections.
[ERR]: LN: nc_server_tls_endpt_set_server_cert: invalid argument (endpt_name).
[ERR]: LN: nc_server_tls_add_trusted_cert_list: invalid argument (name).
[INF]: SR: Successful processing of "done" event with ID 1 priority 0 (remaining 0 subscribers).
[INF]: SR: Successful processing of "rpc" event with ID 3 priority 0 (remaining 0 subscribers).
[INF]: SR: Event "rpc" with ID 3 priority 0 succeeded.
[INF]: NP: Session 1: thread 2 event new RPC.
we are using yang 2.0 version and we have modified the example configurations of tls_listen configuration according to our yang.
we have added container "certificate" additionally. And configuration was successful
In code, for subscription part xpath was coming with container as below:
xpath = "/ietf-netconf-server:netconf-server/listen/endpoint/tls/tls-server-parameters/server-identity/certificate/keystore-reference";
SR_CONFIG_SUBSCR(mod_name, xpath, np2srv_endpt_tls_servercert_cb);
But in callback function, xpath mentioned without container (certificate):
/* /ietf-netconf-server:netconf-server/listen/endpoint/tls/tls-server-parameters/server-identity/keystore-reference */
int
np2srv_endpt_tls_servercert_cb(sr_session_ctx_t *session, uint32_t UNUSED(sub_id), const char *UNUSED(module_name),
const char *xpath, sr_event_t UNUSED(event), uint32_t UNUSED(request_id), void *UNUSED(private_data))
{
we are suspecting that if additional container was added then the value of child will get changed and cannot fetch the endpoint name. Hence the error was observed as invalid argument for endpoint name.
code snippet:
/* find name */
endpt_name = lyd_get_value(node->parent->parent->parent->parent->parent->child);
could you please confirm how the code was handled, whether with container (certificate) or without that container?
Attached the configs for reference.
tls_listen.odt
The text was updated successfully, but these errors were encountered: