since ‎08-04-2020
‎05-12-2020
xrisc
Level 1
Re: KeyStoreService usage
Avatar

xrisc

xrisc
- Adobe Experience Manager
keyStoreService.createTrustStore(adminResolver, STORE_PASSWD.toCharArray()) still throws a NullPointerException due to a null keyStoreService. I have the following already defined: @reference private KeyStoreService keyStoreService; Any idea on why it's still throwing a NullPointerException? and how to resolve?

Views

167

Like

1

Replies

0
Re: KeyStoreService usage
Avatar

xrisc

xrisc
- Adobe Experience Manager
keyStoreService.createTrustStore(adminResolver, STORE_PASSWD.toCharArray()) still throws a NullPointerException due to a null keyStoreService. I have the following already defined: @reference private KeyStoreService keyStoreService; Any idea on why it's still throwing a NullPointerException? and how to resolve?

Views

205

Likes

0

Replies

0
KeyStoreService usage
Avatar

xrisc

xrisc
- Adobe Experience Manager
I'm trying to follow the code example in http://www.sgaemsolutions.com/2020/01/how-to-manage-certificates-in-aem.html but can't figure out how to properly set KeyStoreService. Always getting a null keyStoreService in the line: KeyStore trustStore = this.keyStoreService.getTrustStore(resourceResolver); Any help or hint would be very welcome. Thanks in advance

Views

249

Like

1

Replies

4
Likes from