-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
more-information-neededFurther information is requiredFurther information is required
Description
The following warning was observerned when running ros2 security create_enclave in a bazel environment.
INFO: Running command line: bazel-bin/ros2/ros2_security create_enclave /tmp/MY_ENCLAVE /MY_ENCLAVE_NAME
/home/user/.cache/bazel/_bazel_/9aa7afc3a0e2498fab67e6e6e7243812/execroot/rules_ros2/bazel-out/k8-opt/bin/ros2/ros2sec.runfiles/sros2/sros2/sros2/keystore/_permission.py:78:
CryptographyDeprecationWarning: Properties that return a naïve datetime object have been deprecated.
Please switch to not_valid_before_utc.kwargs['not_valid_before'] = etree.XSLT.strparam(cert_content.not_valid_before.isoformat())
/home/user/.cache/bazel/_bazel_/9aa7afc3a0e2498fab67e6e6e7243812/execroot/rules_ros2/bazel-out/k8-opt/bin/ros2/ros2sec.runfiles/sros2/sros2/sros2/keystore/_permission.py:79:
CryptographyDeprecationWarning: Properties that return a naïve datetime object have been deprecated.
Please switch to not_valid_after_utc.kwargs['not_valid_after'] = etree.XSLT.strparam(cert_content.not_valid_after.isoformat())
Here are the offending lines:
sros2/sros2/sros2/keystore/_permission.py
Line 78 in 3ee78e1
| kwargs['not_valid_before'] = etree.XSLT.strparam(cert_content.not_valid_before.isoformat()) |
The solution is to use not_valid_before_utc and not_valid_after_utc respectively
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
more-information-neededFurther information is requiredFurther information is required