The exported .p12 file can not be imported into Windows #1
Comments
Hi, This exact error message is referenced here: https://support.microsoft.com/en-us/kb/919074 Thanks! |
Have you tried to load it into OS yourself? I have tried MAC and Windows, I have attached code and one bad output. Password is "password". Thanks! On Sat, Jun 4, 2016 at 8:35 PM, Olivier Lemasle notifications@github.com
|
Yes, I tried and it works. Your code and output were not attached to GitHub issue. Can you please paste it directly in the issue? |
Simple example: import static io.github.olivierlemasle.ca.CA.createSelfSignedCertificate;
import static io.github.olivierlemasle.ca.CA.dn;
import io.github.olivierlemasle.ca.DistinguishedName;
import io.github.olivierlemasle.ca.RootCertificate;
public class Main {
public static void main(final String[] args) {
final DistinguishedName root = dn("CN=Root-Test, O=My Org");
final RootCertificate ca = createSelfSignedCertificate(root)
.validDuringYears(10)
.build();
ca.exportPkcs12("root.p12", "password".toCharArray(), "test");
}
} I successfully read it on my main OS (Linux Fedora). Then I select "Local Machine", then the root.p12 path, then: Then I choose the store (Personal in my case), and review the settings. I can now check that the SSL certificate is imported, along with the private key. |
Suggest more OS platform testing @olivierlemasle win7 error: http://andaily.com/dd/win7_error.png |
I found the issue and update it and when load from Keystore, add password |
Closing as I archive this unmaintained project. |
Error is : an internal error occurred. Either the user profile is not accessible or the private key that you are importing might require a cryptographic service provider that is not installed on your system.
Need to change java.security?
The text was updated successfully, but these errors were encountered: