The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features

See the new Forums

Problem importing my own CA in Opera 11.52

Forums » Opera for Windows/Mac/Linux » Opera browser

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

1. November 2011, 19:29:53

sugao

Posts: 1

Problem importing my own CA in Opera 11.52

Hi,
I'm using Opera (.deb package on Linux Mint distro) and I can't import my own Certification Authority. The error I got is "the certificate installation has failed".
If I convert the CA in other format, for example with this command:

openssl pkcs12 -export -in cacert.pem -inkey private/cakey.pem -descert -out cacert.des.p12


I can import the CA, but it dosen't work.
I can succesfully import the same certificate on Firefox.
I've the same problem with Opera on Debian Squeeze and Opera on Windows 7.
Any suggestion?
Thank you very much!

1. November 2011, 21:22:11

yngve

Senior Developer

Posts: 2975

PKCS #12 can only be used to import Personal/Client Certificates, not CA certificates. If you used this format your certificate probably ended up somewhere it should not have gone.

For CAs the certificate must be stored as a X509 file or in PKCS #7/ PKCS#7 Signed Data encoded file, which can be either binary or PEM encoded

CA certificates need to meet certain requirements regarding what features they include. Of interest are both version, key identifiers, algorithms, and usage extensions.
Sincerely,
Yngve N. Pettersen

8. November 2011, 04:14:57

benx0r

Posts: 2

I have the same problem, but more details: one CA will import whereas the other won't. Both import nicely in Firefox and/or Chrome.

The only difference between the two (besides the DN and other obvious content differences) is as follows from the X509 dump:

GOOD:
- Serial number: 0
- Signature Algorithm: sha1WithRSAEncryption
- Netscape CA Revocation Url: NOT SET
- Netscape CA Policy Url: NOT SET
- Netscape Revocation Url: NOT SET
- X509v3 Subject Alternative Name: NOT SET

BAD:
- Serial number: 82:27:6b:0c:72:f2:dc:3d
- Signature Algorithm: ripemd160WithRSA
- Netscape CA Revocation Url: http://foo/bar/ca.rev
- Netscape CA Policy Url: http://foo/bar/ca.pol
- Netscape Revocation Url: http://foo/bar/sub.rev
- X509v3 Subject Alternative Name: email:foo@bar.baz

Any ideas?

8. November 2011, 09:45:12

yngve

Senior Developer

Posts: 2975

ripemd160WithRSA is not supported
Sincerely,
Yngve N. Pettersen

8. November 2011, 09:59:47

benx0r

Posts: 2

Yngve, thank you for the information.

Is there any hope of it being supported in near future? I have the entire infrastructure based on this CA, and I doubt I am the only one in doing such. :-)

Regards,
Grega

8. November 2011, 12:42:06

yngve

Senior Developer

Posts: 2975

I doubt that, as it is not used in any other functionality we currently support.

Also, we encourage a migration to SHA-256 for digital signatures, since SHA-1 is weakening. Although RipeMD is less analyzed than SHA-1, my guess is that it would also be vulnerable to adaptions of the same methods developed against SHA-1.
Sincerely,
Yngve N. Pettersen

Forums » Opera for Windows/Mac/Linux » Opera browser