Comments (3)
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.
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)
}`
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.
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)
- Why can't this project generate a certificate file in jks format? HOT 1
- pkcs12: error reading P12 data: asn1: syntax error: indefinite length found (not DER) HOT 4
- test error HOT 2
- Having an issue onverting PFX to Pem HOT 2
- Java 18 PKCS12 keystore format HOT 3
- Encoding password-less PKCS12 HOT 10
- Can give an example of using client certificate requests by p12 file HOT 1
- Friendly name for `Encode()` HOT 3
- Support triple DES certificate encryption HOT 6
- docs: incorrect godoc.org link HOT 1
- Error in parsing encrypted private key HOT 8
- Predefined error value for unexpected number of safe bags
- Encoding a combined keystore and trust store HOT 1
- Support decoding pbeWithSHAAnd128BitRC2CBC HOT 5
- Please bump golang.org/x/crypto dependency HOT 2
- `go.mod file not found in current directory or any parent directory.` when `go get` HOT 1
- Support frientlyName in DecodeChain
- Single item Authenticated Safe support HOT 1
- `DecodeChain` assumes the certificate chain order is from the leaf to root
- Is there any way to add some content to pkcs12 file's Certificate?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-pkcs12.