A private key(pk8 file) has been kept at Resources folder in Spring Boot application.
It is required to pass this pk8 file at application properties. It is being used at datasource url.
We are using classpath to provide location of file.
But it is giving error.
Could not read SSL key file classpath:client-key.pem
application properties field
spring.datasource.url=jdbc:postgresql://x.x.x.x:5432/test?ssl=true&sslmode=verify-ca&sslrootcert=/etc/test/server-ca.pem&sslcert=/etc/test/client-cert.pem&sslkey=classpath:client-key.pk8
pk8 file at Resources folder

