[GH-ISSUE #151] -client certificate error while adding to OSX Keychain Acess #91

Closed
opened 2026-02-25 22:32:35 +03:00 by kerem · 1 comment
Owner

Originally created by @pc6n on GitHub (Mar 17, 2019).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/151

I could set up everything except the client certificate.

When I try to add it to the Keychain APP in OSX i get the error:

An error has occurred. Unable to import an item.
The contents of this item cannot be retrieved.

I want to use client authentication so that only clients with the certificate installed are allowed to access my Webserver. The Webserver is hosted by nginx.

Originally created by @pc6n on GitHub (Mar 17, 2019). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/151 I could set up everything except the client certificate. When I try to add it to the Keychain APP in OSX i get the error: An error has occurred. Unable to import an item. The contents of this item cannot be retrieved. I want to use client authentication so that only clients with the certificate installed are allowed to access my Webserver. The Webserver is hosted by nginx.
kerem closed this issue 2026-02-25 22:32:35 +03:00
Author
Owner

@pc6n commented on GitHub (Mar 18, 2019):

Ok, finally its working.

Had to use mkcert -client -pkcs12 servernames to create the correct certificate for client authentication.

<!-- gh-comment-id:473808524 --> @pc6n commented on GitHub (Mar 18, 2019): Ok, finally its working. Had to use `mkcert -client -pkcs12 servernames ` to create the correct certificate for client authentication.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mkcert#91
No description provided.