-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can NOT sent a certificate chain which contains two certificate #174
Comments
It looks like you are running into this error, which isn't expecting the concatenated certs. I can't seem to reproduce the exact same error that you are getting, but I can get the same error as mentioned here. Are you generating your certs the same as in the guide you linked? and are you using the pubsub to test this? |
|
If everything is done correctly you shouldn't need to concatenate the deviceCert.crt and rootCA.pem. This step: registers your cert so when you call |
No, that wont work.
Also this blog use Mosquitto pass concatenated PEM, this is the correct way.
|
This should be fixed now. Please let us know if you run into any more problems with certificate chains |
|
@jmklix In which release is it fixed? I tried https://github.com/aws/aws-iot-device-sdk-java-v2/releases/tag/v1.8.0 (
This is just like the OP described in the |
@tonisives the fix was in one of the dependencies: aws-c-io. |
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Known Issue
<prefix>-ats.iot.<region>.amazonaws.com
Describe the bug
As following code,
mqttConnectionCertPem
contains two PEM, one for device and one for CA. This is to implement JITP (https://aws.amazon.com/blogs/iot/setting-up-just-in-time-provisioning-with-aws-iot-core/) wherecat deviceCert.crt rootCA.pem > deviceCertAndCACert.crt
The error I got is "PEM has greater than expected depth, Expected Max: 1, Acutal: 2"
SDK version number
1.0.x
Platform/OS/Hardware/Device
macOS
To Reproduce (observed behavior)
Expected behavior
MQTT should connected
Logs/output
If applicable, add logs or error output.
To enable logging, set the following system properties:
REMEMBER TO SANITIZE YOUR PERSONAL INFO
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: