{"action":"created","issue":{"url":"https://api.github.com/repos/demoiselle/certificate/issues/13","labels_url":"https://api.github.com/repos/demoiselle/certificate/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/demoiselle/certificate/issues/13/comments","events_url":"https://api.github.com/repos/demoiselle/certificate/issues/13/events","html_url":"https://github.com/demoiselle/certificate/issues/13","id":122343428,"number":13,"title":"Assinar com o conteúdo","user":{"login":"ricardoborges","id":404572,"avatar_url":"https://avatars.githubusercontent.com/u/404572?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardoborges","html_url":"https://github.com/ricardoborges","followers_url":"https://api.github.com/users/ricardoborges/followers","following_url":"https://api.github.com/users/ricardoborges/following{/other_user}","gists_url":"https://api.github.com/users/ricardoborges/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardoborges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardoborges/subscriptions","organizations_url":"https://api.github.com/users/ricardoborges/orgs","repos_url":"https://api.github.com/users/ricardoborges/repos","events_url":"https://api.github.com/users/ricardoborges/events{/privacy}","received_events_url":"https://api.github.com/users/ricardoborges/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-15T19:13:34Z","updated_at":"2015-12-15T20:07:08Z","closed_at":null,"body":"Pessoal,\r\n\r\nEstou seguindo o exemplo de assinatura com o conteúdo, mas o applet está tentando buscar o arquivo na basta do firefox, quando configuro o componente com signer.setAttached(true);\r\n\r\n\r\n    public byte[] signHash(byte[] content, X509Certificate certificate, PrivateKey privateKey){\r\n        PKCS7Signer signer = PKCS7Factory.getInstance().factoryDefault();\r\n        signer.setCertificate(certificate);\r\n        signer.setPrivateKey(privateKey);\r\n        \r\n        signer.setAlgorithm(SignerAlgorithmEnum.SHA256withRSA);\r\n        signer.setSignaturePolicy(new ADRBCMS_2_1());\r\n        signer.setAttached(true);\r\n        \r\n        return signer.signer(content);\r\n    }"},"comment":{"url":"https://api.github.com/repos/demoiselle/certificate/issues/comments/164880818","html_url":"https://github.com/demoiselle/certificate/issues/13#issuecomment-164880818","issue_url":"https://api.github.com/repos/demoiselle/certificate/issues/13","id":164880818,"user":{"login":"ricardoborges","id":404572,"avatar_url":"https://avatars.githubusercontent.com/u/404572?v=3","gravatar_id":"","url":"https://api.github.com/users/ricardoborges","html_url":"https://github.com/ricardoborges","followers_url":"https://api.github.com/users/ricardoborges/followers","following_url":"https://api.github.com/users/ricardoborges/following{/other_user}","gists_url":"https://api.github.com/users/ricardoborges/gists{/gist_id}","starred_url":"https://api.github.com/users/ricardoborges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ricardoborges/subscriptions","organizations_url":"https://api.github.com/users/ricardoborges/orgs","repos_url":"https://api.github.com/users/ricardoborges/repos","events_url":"https://api.github.com/users/ricardoborges/events{/privacy}","received_events_url":"https://api.github.com/users/ricardoborges/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T20:07:08Z","updated_at":"2015-12-15T20:07:08Z","body":"Monzilla Firefox 39.0"}}