Coder Social home page Coder Social logo

Comments (3)

AGWA avatar AGWA commented on June 18, 2024

Could you provide a sample of the code you're using to generate the file? What is the error message from Tomcat?

from go-pkcs12.

bonbonr avatar bonbonr commented on June 18, 2024

Could you provide a sample of the code you're using to generate the file? What is the error message from Tomcat?
` pfxBytes, err = pkcs12.Encode(rand.Reader, privateKey, cert, caCerts, password)

if err != nil {
	log.Println("pfxBytes", err)
}`

image
tomcat-6.0.53
tomcat-7.0.99
tomcat-8.5.55
tomcat-9.0.44
I tried to use the certificate in the above tomcat version, but the certificate could not be used. There is no information in the log that allows me to find the error problem.
But I found a message like this๏ผš
Caused by: java.lang.IllegalArgumentException: Private key must be accompanied by certificate chain

How do I send the error log file to your email?
I very much hope that the problem will be resolved.

Why can't this project generate a certificate file in jks format?

from go-pkcs12.

AGWA avatar AGWA commented on June 18, 2024

Googling for that error message, I came across several pages (such as https://bz.apache.org/bugzilla/show_bug.cgi?id=62526) which indicate that the error is caused by an empty password. Are you using an empty password when encoding the file?

from go-pkcs12.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.