question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Importing a self-signed certificate not possible

See original GitHub issue

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/)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
HappyTobicommented, Aug 6, 2020

Hi all,

The CredHub and CredHub acceptance test was done

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

Kind regards

1reaction
jknostman3commented, Sep 15, 2020

@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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adding the self-signed certificate as trusted to a browser
In the tree pane, select Certificates (Local Computer) > Trusted Root Certification Authorities, right-click Certificates, and then select All Tasks > Import.
Read more >
Import a Self-Signed Certificate on a Windows Host
To import a self-signed certificate on a Windows host, you export the certificate from your Horizon FLEX server and import it to the...
Read more >
Configuring Internet Explorer to import self-signed certificates
You can configure Internet Explorer to import your self-signed certificates. You set Internet Explorer to accept the certificate, and then add the certificate...
Read more >
5 Creating, Exporting, and Importing SSL Certificates
A self-signed certificate is one that you create for your server, in the server's KeyStore. You then export and import the exported certificate...
Read more >
SSL errors 9318, 9407, 11748 importing a self-signed certificate
In this case, when a self-signed certificate is generated, the .PEM file might have all certificates in one file and only one hash...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found