Skip to content
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

Importing a self-signed certificate not possible #134

Closed
1 of 3 tasks
dueckminor opened this issue Jun 8, 2020 · 6 comments
Closed
1 of 3 tasks

Importing a self-signed certificate not possible #134

dueckminor opened this issue Jun 8, 2020 · 6 comments

Comments

@dueckminor
Copy link

What version of the credhub server you are using?
2.6.0

What version of the credhub cli you are using?
2.6.2

If you were attempting to accomplish a task, what was it you were attempting to do?

> credhub generate -n  /selfsigned/cert  --type=certificate --common-name="selfsigned"  --self-sign
> credhub export --path=/selfsigned | credhub import --file=/dev/stdin
Credential '/selfsigned/cert' at index 0 could not be set: The provided CA value is not a valid X509 certificate authority.

Import complete.
Successfully set: 0
Failed to set: 1
 - Credential '/selfsigned/cert' at index 0 could not be set: The provided CA value is not a valid X509 certificate authority.
One or more credentials failed to import.

What did you expect to happen?
I would expect, that I can import things I have created using the CredHub-CLI and that they look exactly the same afterwards (ignoring the changed id)

What was the actual behavior?
The self signed certificate can not be imported

Please confirm where necessary:

  • I have included a log output
  • My log includes an error message
  • I have included steps for reproduction

If you are a PCF customer with an Operation Manager (PCF Ops Manager) please direct your questions to support (https://support.pivotal.io/)

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/173221043

The labels on this github issue will be updated when the story is started.

@bruce-ricard
Copy link
Contributor

Note to whomever will fix this issue: when you think you are done, please add a test in our import-export integration tests to deal with self-signed leaves.

@HappyTobi
Copy link
Contributor

Hi all,

The CredHub and CredHub acceptance test was done

CredHub PR: #150
CredHub acceptance test PR: #7

Kind regards

@damzog
Copy link

damzog commented Aug 21, 2020

@HappyTobi I have the same problem. In which version will the fix be released? is it a server side issue or cli issue?

@HappyTobi
Copy link
Contributor

@damzog,

I don't know when thy will release it, but it's a server side issue.

@bruce-ricard can you help here?

Br

@jknostman3
Copy link

@HappyTobi & @damzog I am happy to report that we have made a new release of CredHub (2.9.0) that includes this fix. As a result, I will close out this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants