- Double-check the path and filename of the private key file you provided. Make sure the file exists in the specified location (C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\).
- Verify that the file format of the private key matches the expected format for SSL certificates. Common formats include PEM and PFX. Ensure that the file extension matches the format and that the contents of the file are valid.
- Confirm that the private key file has the appropriate file permissions. Ensure that the user running the MATLAB Web App Server has read access to the file.
- If the private key file is password-protected, make sure you have provided the correct password in the server configuration.
- If you obtained the SSL certificate from a certificate authority, ensure that you have both the private key file and the corresponding certificate file. The private key and certificate should be properly paired.
- If you have the certificate in a different format or suspect any issues with the private key file, try regenerating the private key and certificate files from the certificate authority and ensure they are in the correct format.
How to fix Error "Failed to read private key: Error 101077092"??
63 views (last 30 days)
Show older comments
Hi, i'm using webapp Server R2022b.
Today i was set ssl certificate file and private key on my server. but its not work with an error "Failed to read private key: Error 101077092"
This ssl certificate was issued by a verified certificate authority.
How to i fix it?.
here is my log.
00000002 2023-05-15 14:37:13 0x0000321c cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\spf\servicedependencies
00000003 2023-05-15 14:37:13 0x0000321c agent::agentcore V Core framework services started.
00000004 2023-05-15 14:37:13 0x0000321c agent::agentcore V Registering agentmdwas_9_13 using lockroot C:\ProgramData\MathWorks\webapps\R2022b\USR\locks
00000005 2023-05-15 14:37:13 0x0000321c agent::agentcore V Registration complete.
00000006 2023-05-15 14:37:13 0x0000321c cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\spf\externalprocessdiscovery
00000007 2023-05-15 14:37:13 0x0000094c cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\matlabconnector\serviceprocess
00000008 2023-05-15 14:37:13 0x0000094c cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\storage\providerenvironment\storage\providerenvironment\matlab_connector
00000009 2023-05-15 14:37:13 0x0000321c cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\spf\clients
00000010 2023-05-15 14:37:13 0x0000183c cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\agent_plugins\http_authenticators
00000011 2023-05-15 14:37:13 0x0000183c agent::httpserver V Exception caught: Dynamic exception type: class std::runtime_error
std::exception::what: Failed to read private key: Error 101077092
00000012 2023-05-15 14:37:13 0x0000183c agent::httpserver E Error creating context for self-signed SSL certificate
00000013 2023-05-15 14:37:13 0x0000183c agent::httpserver E [trusted roots]
00000014 2023-05-15 14:37:13 0x0000183c agent::httpserver E SSL Disabled
00000015 2023-05-15 14:37:13 0x0000183c agent::httpserver E Failed to start http server
00000016 2023-05-15 14:37:13 0x0000183c agent::core::service E httpserver: setup threw an exception
00000017 2023-05-15 14:37:13 0x0000183c agent::core::service V Exception caught: Dynamic exception type: class std::runtime_error
std::exception::what: Failed to start http server
00000018 2023-05-15 14:37:13 0x0000183c agent::spf::legacyservicepublisher W Unable to create Service instance for PID: AgentServicesContainer with uniqueID: AgentServicesContainer+httpserver+0 on exchange endpoint: inprocess
00000019 2023-05-15 14:37:13 0x0000183c agent::spf::legacyservicepublisher V Exception caught: Dynamic exception type: class std::runtime_error
std::exception::what: Failed to start http server
00000020 2023-05-15 14:37:13 0x000032a4 agent::staticcontent W Attempted re-registration of stem /default(folder: /html/, service instance: 2e91f04c-323e-44eb-84bd-38f50f595311)
00000021 2023-05-15 14:37:13 0x0000183c cppmicroservices::install W file not found: C:\Program Files\MATLAB\MATLAB Web App Server\R2022b\bin\win64\agent_plugins\http_authenticators
00000022 2023-05-15 14:37:14 0x000032a4 agent::agentname E Service is not accepting work 4a902151-b200-4980-877a-a8c1473b20b3:256:2e91f04c-323e-44eb-84bd-38f50f595311:1
00000023 2023-05-15 14:37:14 0x00003230 agent::httpserver V HTTP server shutdown
00000024 2023-05-15 14:37:14 0x0000183c agent::spf::framework E Failed to publish ServiceInterface: httpserver to ServicePublisher:legacyservicepublisher (02548c50-b2ea-481f-8343-142ee8dacb9f)
00000025 2023-05-15 14:37:14 0x0000183c agent::spf::framework V Exception caught: Dynamic exception type: class std::runtime_error
std::exception::what: Unable to publish service
00000026 2023-05-15 14:37:14 0x000032a4 agent::shutdownservice V ShutdownService shutting down.
00000027 2023-05-15 14:37:14 0x0000321c agent::coreservices E Failed to start all non-core services
00000028 2023-05-15 14:37:14 0x0000321c agent::agentcore E Services not started. Exiting.
0 Comments
Answers (1)
Shaik
on 15 May 2023
Hi,
The error message "Failed to read private key: Error 101077092" suggests that there is an issue with reading the private key file for your SSL certificate. To fix this, you can try the following steps:
If you've verified the above steps and the issue persists, it may be helpful to consult the MATLAB Web App Server documentation or reach out to MathWorks support for further assistance, as they will have more specific knowledge about the server and any potential troubleshooting steps.
2 Comments
See Also
Categories
Find more on MATLAB Web App Server in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!