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

identities.Issue does not issue properly. #21

Open
joshua-rutherford opened this issue Jan 3, 2020 · 0 comments
Open

identities.Issue does not issue properly. #21

joshua-rutherford opened this issue Jan 3, 2020 · 0 comments

Comments

@joshua-rutherford
Copy link
Contributor

When issuing certificates with identities.Issue the certificate issued is always self signed and therefore not part of the expected chain. The solution is to modify https://github.com/DecipherNow/nautls/blob/master/identities/identity.go#L65 from

	certificate, err := sign(template.certificate(), template.certificate(), &key.PublicKey, key)

to

	certificate, err := sign(template.certificate(), i.Certificate, &key.PublicKey, key)
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

1 participant