Closed qinfchen closed 5 years ago
The intention of the values:
mockserver.certificateAuthorityPrivateKey
mockserver.certificateAuthorityCertificate
is for user-supplied files, i.e. files that already exist.
I also notice you have the wrong capitalization of mockserver.CertificateAuthorityCertificate
but this should be mockserver.certificateAuthorityCertificate
.
I believe, from your question, you want to retrieve files that have been autogenerated by MockServer. I have therefore added an addition property
mockserver.directoryToSaveDynamicSSLCertificate
This a directory you specify where the certificate files are generated. In addition, I have added a log event (at DEBUG level) that outputs the file path when the files are created to help debugging. The files are created with the following file patterns:
"MockServerCertificate" + randomUUID + ".pem"
"MockServerPrivateKey" + randomUUID + ".pem"
This new code is available in the latest SNAPSHOT version. Unfortunately, I just did a release yesterday so I would likely do another release for a couple of weeks. Using the SNAPSHOT version is documented: http://mock-server.com/where/maven_central.html#sonatype_snapshot
I am going to close this issue because I believe this should now be resolved for you. If you have more questions either add an additional comment here (as I'll receive an email) or open a new issue.
Here is the docker-compose block
and here is the mockserver.properties
and I keep getting the following error
Any help is appreciated.