Olá,
Eu li esses links:
http://www.guj.com.br/java/233156-certificados-a1-e-a3---funciona-em-linux-ubuntu
http://www.dvdadvdr.com/forums/showthread.php?t=67676
Vi em um dos links que converteram o .pfx em .p12. No outro link fala que pode-se importar um certificado com extensão .p12 no Firefox ao contrário de um .pfx. Então converti o meu arquivo .pfx para .p12 com os seguintes comandos:
openssl pkcs12 -in certificado.pfx -out certificado.pem
openssl pkcs12 -export -in certificado.pem -inkey certificado.pem -out certificado.p12
Esse comando aqui não funcionou para mim para converter em .p12:
openssl pkcs12 -export -chain -CAfile certificado.pem -in certificado.pem -out certificado.p12
Como não tinha nem idéia de como importar o certificado no OS eu importei o certificado .p12 no Firefox mas não acessou a url do wsdl:
https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/NfeRecepcao2.asmx?WSDL
Aparece a mensagem:
The page requires a client certificate
The page you are attempting to access requires your browser to have a Secure Sockets Layer (SSL) client certificate that the Web server will recognize. The client certificate is used for identifying you as a valid user of the resource.
Please try the following:
Contact the Web site administrator if you believe you should be able to view this directory or page without a client certificate, or to obtain a client certificate.
If you already have a client certificate, use your Web browser's security features to ensure that your client certificate is installed properly. (Some Web browsers refer to client certificates as browser or personal certificates.)
HTTP Error 403.7 - Forbidden: SSL client certificate is required.
Internet Information Services (IIS)
Technical Information (for support personnel)
Go to Microsoft Product Support Services and perform a title search for the words HTTP and 403.
Open IIS Help, which is accessible in IIS Manager (inetmgr), and search for topics titled About Certificates, Using Certificate Trust Lists, Enabling Client Certificates, and About Custom Error Messages.
==========================
Detalhe, importando o certificado .pfx no Windows e no Internet Explorer consegui acessar a url do wsdl. Porém precisa fazer rodar aqui na minha máquina que é Linux. Alguém sabe o que mais posso tentar?
Abraço.