Comments (4)
@rareddy hi,
This (keystore-go
) library is an implementation of Encoder
and Decoder
for a proprietary Oracle (Sun) file format called jks
. keystore
tool from the jdk
works with several formats: jks
, jceks
and pkcs12
. jks
was a default format till jdk9
. From the jdk9
default format is pkcs12
and jks
is deprecated. So this library is useful if you are working with legacy software that still using jks
file format to store certificates and private keys. If you want to work with pkcs12
file format in your golang applications you need appropriate libraries (take a look at https://pkg.go.dev/search?q=pkcs12)
References:
- JEP about switching to
pkcs12
injdk9
http://openjdk.java.net/jeps/229 KeyStore
types supported by thekeystore
tool: https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#KeyStore- About Keystore implementation: https://docs.oracle.com/javase/7/docs/technotes/guides/security/crypto/CryptoSpec.html#KeystoreImplementation
P.S. pkcs1
!= jks
!= pkcs12
and so on. And to work with them you need appropriate implementations of a decoder and an encoder.
from keystore-go.
@rareddy hi,
how are things going? do you need any more help?
from keystore-go.
@pavel-v-chernykh Your suggestion was right on, I found "github.com/hetesiistvan/go-pkcs12" which does handle the pkcs12 both keystores and truststores. So, I am trying to rewrite using that. My initial tests were good. Thanks again.
from keystore-go.
@rareddy, happy to help 😃
Wish you good luck with your project!
from keystore-go.
Related Issues (20)
- Issue: "got invalid digest" HOT 1
- got invalid digest HOT 1
- Ability to decode a private key entry HOT 9
- getting invalid digest HOT 2
- PFX format cert in TrustedCertificateEntry HOT 2
- KeyStore Encoder with sha256 HOT 2
- Unrecognized keystore format HOT 2
- Change/remove minPasswordLen HOT 3
- make - lint fails with several varnamelen HOT 3
- what is the correct way to compare two keystores? HOT 6
- Reading cert and key from keystore file and then use the files for https HOT 4
- Error with Java 18 - "got invalid magic" HOT 3
- how to get public key HOT 4
- PKCS12 keystore HOT 2
- "got invalid digest" with JKS file that doesn't have a password HOT 4
- Cut new tag HOT 2
- FIPS-140 compliance? HOT 2
- Follow-up to #41 HOT 2
- Can not extract Certificate Chain without Private-Key Password HOT 5
- Cant extract Certificates from JKS, if they are not in a CA-Chain, or bound to a private Key HOT 1
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 keystore-go.