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

as2_certs.p12: PKCS#12 vs JKS #119

Closed
jsmucr opened this issue Sep 12, 2018 · 5 comments
Closed

as2_certs.p12: PKCS#12 vs JKS #119

jsmucr opened this issue Sep 12, 2018 · 5 comments

Comments

@jsmucr
Copy link
Contributor

jsmucr commented Sep 12, 2018

I'm struggling with sudden certificate issues and I've come across a thing I don't understand.

The as2_certs.p12 keystore - according to the extension and also to what the documentation claims - is meant to be in the PKCS#12 format. But it's not.

keytool -list -keystore as2_certs.p12
Enter keystore password:
Keystore type: JKS
Keystore provider: SUN

Your keystore contains 2 entries

openas2a, 27.7.2015, PrivateKeyEntry,
Certificate fingerprint (SHA1): 2D:4B:42:05:56:80:9B:5D:0E:63:4D:4A:23:3D:9A:39:C3:8D:51:21
openas2b, 27.7.2015, PrivateKeyEntry,
Certificate fingerprint (SHA1): 1E:16:65:9B:7A:F2:59:EA:B7:B7:4F:E5:EB:D3:CF:89:3A:0F:89:CA

Warning:
<openas2a> uses the MD5withRSA signature algorithm which is considered a security risk.

All my attempts to convert it to the PKCS#12 format end up losing all trusted certificates which renders the keystore useless.

@uhurusurfa
Copy link
Contributor

uhurusurfa commented Sep 12, 2018 via email

@uhurusurfa
Copy link
Contributor

Also look at this post which may be the issues you are facing: #98

@uhurusurfa
Copy link
Contributor

I see your output shows a SHA-1 certificate - I started using SHA-256 certificates a while back so that must be an old keystore

@jsmucr
Copy link
Contributor Author

jsmucr commented Sep 12, 2018

Somewhat old... It's the default keystore from OpenAS2 2.5.0. Didn't have the chance to check out the 2.6.x yet.

@jsmucr
Copy link
Contributor Author

jsmucr commented Sep 12, 2018

Ok, tried it again with Java 10 and it shows PKCS12 instead of JKS. The bug is on the Java side then. Also Keystore Explorer has no issue with trusted certificates within the keystore. Only Portecle does.

Since this does not seem to be the reason for my issues, I am closing the issue.

@jsmucr jsmucr closed this as completed Sep 12, 2018
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

2 participants