Closed sedkis closed 1 year ago
This appears to be happening again, but only on the Github-hosted automated builds, not locally.
When the script runs this command inside the gateway container:
/opt/tyk-gateway/tyk bundle build -k /opt/tyk-gateway/certs/private-key.pem
The output is:
time="Jan 27 16:27:11" level=info msg="Building bundle using 'manifest.json'" prefix=tyk
time="Jan 27 16:27:11" level=warning msg="Using default bundle path 'bundle.zip'" prefix=tyk
tyk: error: ssh: unsupported key type "PRIVATE KEY", try --help
Debugging this based on your info @sedkis, the local env makes and RSA PRIVATE KEY
, whereas the Github env makes a PRIVATE KEY
. Need to figure out why...
OpenSSL version difference, based on openssl version
command:
LibreSSL 3.3.6
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
This can be fixed by moving the openssl command into the container.
Resolved in #182 by moving openssl commands to gateway container
When bootstrapping 2 issues happen.
First, is Python plugins never build
and second one is the SSL certification command via
openssl
doesn't generate a private key in the correct format.Here's what the private key looks like:
It should be an
RSA PRIVATE KEY