Skip to content

Commit

Permalink
feat(plugins): Support certificate generation with mbedTLS.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoelGraf committed Nov 28, 2023
1 parent 08d2cbe commit 512d8e1
Show file tree
Hide file tree
Showing 4 changed files with 572 additions and 4 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,7 @@ list(INSERT plugin_sources 1
${PROJECT_SOURCE_DIR}/plugins/crypto/mbedtls/ua_securitypolicy_basic256sha256.c
${PROJECT_SOURCE_DIR}/plugins/crypto/mbedtls/ua_securitypolicy_aes128sha256rsaoaep.c
${PROJECT_SOURCE_DIR}/plugins/crypto/mbedtls/ua_securitypolicy_aes256sha256rsapss.c
${PROJECT_SOURCE_DIR}/plugins/crypto/mbedtls/ua_mbedtls_create_certificate.c
${PROJECT_SOURCE_DIR}/plugins/crypto/mbedtls/ua_pki_mbedtls.c)
endif()

Expand Down
4 changes: 0 additions & 4 deletions examples/encryption/server_encryption.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ int main(int argc, char* argv[]) {
"Missing arguments. Arguments are "
"<server-certificate.der> <private-key.der> "
"[<trustlist1.crl>, ...]");
#if defined(UA_ENABLE_ENCRYPTION_OPENSSL) || defined(UA_ENABLE_ENCRYPTION_LIBRESSL)
UA_LOG_INFO(UA_Log_Stdout, UA_LOGCATEGORY_USERLAND,
"Trying to create a certificate.");
UA_String subject[3] = {UA_STRING_STATIC("C=DE"),
Expand All @@ -65,9 +64,6 @@ int main(int argc, char* argv[]) {
UA_StatusCode_name(statusCertGen));
return EXIT_SUCCESS;
}
#else
return EXIT_SUCCESS;
#endif
}


Expand Down
Loading

0 comments on commit 512d8e1

Please sign in to comment.