[OS X] can't connect: error importing private key with OSStatus -25257 / failed to import certificate and private key with error 1038
See original GitHub issue- I’ve searched for previous similar issues and didn’t find any solution
Known Issue
- I’m using ATS data type endpoint: the endpoint should look like
<prefix>-ats.iot.<region>.amazonaws.com
Platform/OS/Hardware/Device What are you running the sdk on?
Mac OS X 10.15 on GitHub Actions
Describe the question When trying to connect using the connection cannot be established. These errors are printed:
Error: [2021-09-01T11:40:25Z] [0000000110907dc0] [pki-utils] - static: error importing private key with OSStatus -25257
113
Error: [2021-09-01T11:40:25Z] [0000000110907dc0] [tls-handler] - static: failed to import certificate and private key with error 1038.
This happens in a project where we run the same tests on Ubuntu and Mac OS using GitHub actions. The Ubuntu configuration works.
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Error -25294 | Apple Developer Forums
Create a new user account on your Mac (using System Preferences > Users & Groups). Log in is that account. Try to import...
Read more >macos - Can't import public key into OSX Keychain - Super User
But the Public Key can't be imported. Instead I get the following error message: An error has occurred. Unable to import an item....
Read more >An error has occurred. Unable to import an item. The contents ...
When you request a certificate, your Mac creates a public/private pair that will be used to download the certificate from Apple.
Read more >Can't import SSL private key certificate - Internet Information ...
An internal error occurred. This can be either the user profile is not accessible or the private key that you are importing might...
Read more >Framework - OSStatus — Apple API Errors
Framework. All; Kernel; Security Error Name Error Code
Kernel SecBasePrivate.h errSecACLNotSimple ‑25240
Kernel SecBasePrivate.h errSecBufferTooSmall ‑25301
Kernel SecBasePrivate.h errSecCreateChainFailed ‑25318
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Using an RSA key I see a different error:
Well if you can use an RSA one temporarily, I’ll see if we can’t get ecc key import bumped in priority. It bugs me that it’s not supported but I’d need to get someone else to do it since I don’t have a Mac.