private static Date DataValidade(String certificado) throws NfeException {
Date data = new Date();
try {
X509Certificate cert = null;
KeyStore.PrivateKeyEntry pkEntry = null;
<BUG>@SuppressWarnings("unused")
PrivateKey privateKey;</BUG>
KeyStore ks = KeyStore.getInstance("Windows-MY", "SunMSCAPI");
ks.load(null, null);
if (ks.isKeyEntry(certificado)) {

private static Date DataValidade(String certificado) throws NfeException {
Date data = new Date();
try {
X509Certificate cert = null;
KeyStore.PrivateKeyEntry pkEntry = null;
KeyStore ks = KeyStore.getInstance("Windows-MY", "SunMSCAPI");
ks.load(null, null);
if (ks.isKeyEntry(certificado)) {
