CounterSign icon indicating copy to clipboard operation
CounterSign copied to clipboard

Key protection algorithm not found: java.lang.NullPointerException

Open kawther201 opened this issue 11 years ago • 8 comments

Hi,

I have a problem when I try to sign document I have this error:

org.alfresco.error.AlfrescoRuntimeException: 03250047 Key protection algorithm not found: java.lang.NullPointerException

This is a copy of my file "contersign-config.properties":

Configuration for the CounterSign server components

How long should user-generated keys remain valid (in days)?

countersign.signature.validDuration=365

Named alias used in the keystore to identify the cert CounterSign should use

countersign.signature.alias=countersign

Enable trusted certificate signing?

countersign.signature.enableTrustedCerts=true

Repository path for a single root (trusted) keystore containing a cert used to sign per-user certs

countersign.signature.trustedKeystorePath=C:/Alfresco/keys/ca.p12

Password for accessing the trusted keystore

countersign.signature.trustedKeystorePassword=baccouch*

Alias for the trusted root certificate

countersign.signature.trustedCertAlias=countersign

Alias for the trusted root certificate

countersign.signature.trustedKeyAlias=countersign

Alias for the trusted root certificate

countersign.signature.trustedKeyPassword=countersign

Snapshot Alfresco metadata and embed in PDF at the time a doc is signed?

(Unimplemented) countersign.signature.snapshotMetadata=true

Hash algorithm to be used for non-pdf doc hashes and signatures

countersign.signature.hashAlgorithm=SHA-256

Signature algorithm (must be valid for the selected provider. See

http://docs.oracle.com/javase/6/docs/api/java/security/Signature.html#getInstance(java.lang.String, java.lang.String)

countersign.signature.signatureAlgorithm=SHA1withRSA

Signature provider for java.security.Signature (we use BC by default)

countersign.signature.java.provider=BC

Map URL for leaflet.js

countersign.leaflet.mapurl=<your leaflet map URL + API key>

Map data attribution for leaflet.js

countersign.leaflet.attribution=

Date format to be used for timeline display

countersign.display.dateFormat=MM/dd/yyyy HH:mm

password strength, minimum length

countersign.passwordStrength.minLength=6

password minimum score for a "good" rating

countersign.passwordStrength.goodScore=34

password minimum score for a "strong" rating

countersign.passwordStrength.strongScore=68

Pleaaaaaaaaaaaaase , help me!!

kawther201 avatar Apr 25 '14 15:04 kawther201

Are you using the .AMP builds, or building from source?

ntmcminn avatar Apr 28 '14 15:04 ntmcminn

Hi,

Thank you for your reply.

I'm using AMP builds.

2014-04-28 16:20 GMT+01:00 Nathan McMinn [email protected]:

Are you using the .AMP builds, or building from source?

— Reply to this email directly or view it on GitHubhttps://github.com/ntmcminn/CounterSign/issues/3#issuecomment-41571299 .

kawther201 avatar Apr 29 '14 10:04 kawther201

OK, I patched a few bugs since the last release, including one that looks similar to what you are experiencing.

I would suggest building from source (using Maven it is pretty simple). I'm rolling up a few fixes into the next release, which should be coming soon(isn).

ntmcminn avatar Apr 29 '14 16:04 ntmcminn

Thank you very much

2014-04-29 17:25 GMT+01:00 Nathan McMinn [email protected]:

OK, I patched a few bugs since the last release, including one that looks similar to what you are experiencing.

I would suggest building from source (using Maven it is pretty simple). I'm rolling up a few fixes into the next release, which should be coming soon(isn).

— Reply to this email directly or view it on GitHubhttps://github.com/ntmcminn/CounterSign/issues/3#issuecomment-41698407 .

kawther201 avatar Apr 30 '14 09:04 kawther201

A new release has been published that incorporates all of the current bugfixes. If you have not yet built from source, you can just download the new release.

ntmcminn avatar May 20 '14 17:05 ntmcminn

Thank You Mr

:)

Date: Tue, 20 May 2014 10:38:13 -0700 From: [email protected] To: [email protected] Subject: Re: [CounterSign] Key protection algorithm not found: java.lang.NullPointerException (#3)

A new release has been published that incorporates all of the current bugfixes. If you have not yet built from source, you can just download the new release.

— Reply to this email directly or view it on GitHub.

mohamedtr avatar May 21 '14 07:05 mohamedtr

can you give me the download link ? From: [email protected] To: [email protected] Subject: RE: [CounterSign] Key protection algorithm not found: java.lang.NullPointerException (#3) Date: Wed, 21 May 2014 08:40:31 +0100

Thank You Mr

:)

Date: Tue, 20 May 2014 10:38:13 -0700 From: [email protected] To: [email protected] Subject: Re: [CounterSign] Key protection algorithm not found: java.lang.NullPointerException (#3)

A new release has been published that incorporates all of the current bugfixes. If you have not yet built from source, you can just download the new release.

— Reply to this email directly or view it on GitHub.

mohamedtr avatar May 21 '14 07:05 mohamedtr

I have two issues with countersign signature. I've spent about 3 weeks without success.

  1. When Admin sent a document for signature, through the workflow, the assignee is not able to sign. Coutersign throws a permission error: org.alfresco.repo.security.permissions.AccessDeniedException: 04020023 Access Denied. You do not have the appropriate permissions to perform this operation.
  2. I need a kind of step by step instruction to setup a trusted store and generate trusted certificates.

Thank in anticipation.

Olajohn Abolade

olajohn avatar May 02 '15 15:05 olajohn