I have created a Docker microservice image using the 'compiler.package.microserviceDockerImage' workflow. It is working correctly, but I would like to configure it to use HTTPS instead of HTTP. How can I accomplish this? I have an existing private key that I would like to use.

 採用された回答

MathWorks Support Team
MathWorks Support Team 2025 年 1 月 23 日

0 投票

You can configure your Docker microservice API to use HTTPS/SSL by postpending the "--x509-private-key" argument to the "docker" command you use to run your image.
For example, if you use this command to run your image:
docker run --rm -p 9900:9910 image-name
Then you can change it to the following:
docker run --rm -p 9900:9910 image-name --x509-private-key <FILE>
Where <FILE> is the name of the file that contains your private key, in PEM format.
For more information, please see the following documentation page:

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Containers についてさらに検索

製品

リリース

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by