We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I tried to invoke UA_CreateCertificate() method from a broker(Java code), I was getting error: "Create Certificate: Setting publik key failed."
When I commented following code in file /plugins/crypto/openssl/ua_openssl_create_certificate.c, it worked fine:
What can be reason for this and is it fine to comment that part of code?
Used CMake options:
cmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DUA_BUILD_EXAMPLES=ON -DUA_ENABLE_PUBSUB=ON -DUA_ENABLE_PUBSUB_MQTT=OFF -DUA_ENABLE_JSON_ENCODING=ON -DUA_ENABLE_DEBUG_SANITIZER=OFF -DUA_ENABLE_DISCOVERY_SEMAPHORE=OFF -DUA_ENABLE_HARDENING=OFF -DUA_ENABLE_NODEMANAGEMENT=OFF -DUA_ENABLE_NODESET_COMPILER_DESCRIPTIONS=OFF -DUA_ENABLE_PARSING=OFF -DUA_ENABLE_PUBSUB_DELTAFRAMES=OFF -DUA_ENABLE_PUBSUB_INFORMATIONMODEL=ON -DUA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS=OFF -DUA_ENABLE_STATUSCODE_DESCRIPTIONS=OFF -DUA_ENABLE_SUBSCRIPTIONS=OFF -DUA_ENABLE_SUBSCRIPTIONS_EVENTS=OFF -DUA_ENABLE_TYPEDESCRIPTION=ON -DUA_FORCE_WERROR=OFF -DUA_MSVC_FORCE_STATIC_CRT=OFF -DUA_ENABLE_ENCRYPTION_TPM2=OFF -DUA_LOGLEVEL=100 -DUA_ENABLE_ENCRYPTION=MBEDTLS -DUA_ENABLE_PUBSUB_ENCRYPTION=ON -DMBEDTLS_INCLUDE_DIRS="/usr/include/mbedtls" -DMBEDTLS_LIBRARY="/usr/lib/x86_64-linux-gnu/libmbedtls.so.14" -DMBEDX509_LIBRARY="/usr/lib/x86_64-linux-gnu/libmbedx509.so.1" -DMBEDCRYPTO_LIBRARY="/usr/lib/x86_64-linux-gnu/libmbedcrypto.so.7" -DUA_ENABLE_ENCRYPTION=OPENSSL
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
Description
When I tried to invoke UA_CreateCertificate() method from a broker(Java code),
![image](https://private-user-images.githubusercontent.com/73328079/259075818-cf950e4d-bce8-45b5-b058-553938e4218f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3NTM3ODEsIm5iZiI6MTcyNTc1MzQ4MSwicGF0aCI6Ii83MzMyODA3OS8yNTkwNzU4MTgtY2Y5NTBlNGQtYmNlOC00NWI1LWIwNTgtNTUzOTM4ZTQyMThmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDIzNTgwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQwZjljMGM0MWQ0MzI0OTE4OWQ2YWJiMTVjNDg0NzU4NWE2NWRkZTA5Mzc5YzI3Mjg0MGYzYTVhMTM1MGVjNGMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BCUGYGVCx7l1Y3SS-cvrAFeIQHYgLVpipPzIPMfLPJQ)
I was getting error: "Create Certificate: Setting publik key failed."
When I commented following code in file /plugins/crypto/openssl/ua_openssl_create_certificate.c, it worked fine:
![image](https://private-user-images.githubusercontent.com/73328079/259075321-622d4fdf-0694-4fca-bfdc-1334b718914b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3NTM3ODEsIm5iZiI6MTcyNTc1MzQ4MSwicGF0aCI6Ii83MzMyODA3OS8yNTkwNzUzMjEtNjIyZDRmZGYtMDY5NC00ZmNhLWJmZGMtMTMzNGI3MTg5MTRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA3VDIzNTgwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFlNzYwNzVjYTUyNWY2YWU4ZDBkY2JhZmNhNzFjNTg1MWE5YjBlYjQ2MjgzOWI5ZjU0NjUyZWRkMjdkYzMxYmImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.fh7eDBfpG1WfstqDEVJTIkVH4KbL4ei-bfR2kdpldbw)
What can be reason for this and is it fine to comment that part of code?
Used CMake options:
cmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DUA_BUILD_EXAMPLES=ON -DUA_ENABLE_PUBSUB=ON -DUA_ENABLE_PUBSUB_MQTT=OFF -DUA_ENABLE_JSON_ENCODING=ON -DUA_ENABLE_DEBUG_SANITIZER=OFF -DUA_ENABLE_DISCOVERY_SEMAPHORE=OFF -DUA_ENABLE_HARDENING=OFF -DUA_ENABLE_NODEMANAGEMENT=OFF -DUA_ENABLE_NODESET_COMPILER_DESCRIPTIONS=OFF -DUA_ENABLE_PARSING=OFF -DUA_ENABLE_PUBSUB_DELTAFRAMES=OFF -DUA_ENABLE_PUBSUB_INFORMATIONMODEL=ON -DUA_ENABLE_PUBSUB_INFORMATIONMODEL_METHODS=OFF -DUA_ENABLE_STATUSCODE_DESCRIPTIONS=OFF -DUA_ENABLE_SUBSCRIPTIONS=OFF -DUA_ENABLE_SUBSCRIPTIONS_EVENTS=OFF -DUA_ENABLE_TYPEDESCRIPTION=ON -DUA_FORCE_WERROR=OFF -DUA_MSVC_FORCE_STATIC_CRT=OFF -DUA_ENABLE_ENCRYPTION_TPM2=OFF -DUA_LOGLEVEL=100 -DUA_ENABLE_ENCRYPTION=MBEDTLS -DUA_ENABLE_PUBSUB_ENCRYPTION=ON -DMBEDTLS_INCLUDE_DIRS="/usr/include/mbedtls" -DMBEDTLS_LIBRARY="/usr/lib/x86_64-linux-gnu/libmbedtls.so.14" -DMBEDX509_LIBRARY="/usr/lib/x86_64-linux-gnu/libmbedx509.so.1" -DMBEDCRYPTO_LIBRARY="/usr/lib/x86_64-linux-gnu/libmbedcrypto.so.7" -DUA_ENABLE_ENCRYPTION=OPENSSL
Checklist
The text was updated successfully, but these errors were encountered: