Skip to content

APISprout in Container can't download from untrusted SSL Web server #61

Open
@cyd01

Description

@cyd01

APISprout in Docker Image can't download an OpenAPI file from a SSL Web server that is signed with a private authority.

$ ./apisprout https://localhost:8080/api.yml
2020/02/05 23:08:28 Get https://localhost:8080/api.yml: x509: certificate signed by unknown authority

However update-ca-certificates is present into the image (see Dockerfile).

I suggest you to modify the Dockerfile to run update-ca-certificates at APISprout startup by replacing

ENTRYPOINT ["/usr/local/bin/apisprout"]

with

COPY startup.sh /startup.sh
RUN chmod +x /startup.sh
ENTRYPOINT  [ "/startup.sh" ]

and adding this new startup.sh file:

#!/bin/sh
update-ca-certificates
/startup.sh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions