risdenk commented on issue #115: KNOX-1922 - Processing a DNSName only if the 
hostname starts with a letter
URL: https://github.com/apache/knox/pull/115#issuecomment-511803217
 
 
   `./bin/knoxcli.sh create-cert --hostname 127.0.0.1`
   
   Results in:
   
   ```
   2019-07-16 08:52:53,707 ERROR knox.gateway 
(X509CertificateUtil.java:generateCertificate(269)) - Error in generating 
certificate: java.lang.reflect.InvocationTargetException
   java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.apache.knox.gateway.util.X509CertificateUtil.generateCertificate(X509CertificateUtil.java:251)
        at 
org.apache.knox.gateway.services.security.impl.DefaultKeystoreService.addCertForGateway(DefaultKeystoreService.java:180)
        at 
org.apache.knox.gateway.services.security.impl.DefaultKeystoreService.addSelfSignedCertForGateway(DefaultKeystoreService.java:160)
        at 
org.apache.knox.gateway.util.KnoxCLI$CertCreateCommand.execute(KnoxCLI.java:690)
        at org.apache.knox.gateway.util.KnoxCLI.run(KnoxCLI.java:156)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
        at org.apache.knox.gateway.util.KnoxCLI.main(KnoxCLI.java:2122)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.apache.knox.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:68)
        at org.apache.knox.gateway.launcher.Invoker.invoke(Invoker.java:39)
        at org.apache.knox.gateway.launcher.Command.run(Command.java:99)
        at org.apache.knox.gateway.launcher.Launcher.run(Launcher.java:75)
        at org.apache.knox.gateway.launcher.Launcher.main(Launcher.java:52)
   Caused by: java.security.cert.CertificateEncodingException: 
java.io.IOException: No value to encode for the extension!
        at sun.security.x509.X509CertImpl.sign(X509CertImpl.java:587)
        at sun.security.x509.X509CertImpl.sign(X509CertImpl.java:528)
        ... 20 more
   2019-07-16 08:52:53,713 ERROR knox.gateway 
(DefaultKeystoreService.java:addCertForGateway(191)) - Failed to add self 
signed certificate for Gateway gateway-identity: 
java.security.cert.CertificateEncodingException: Null certificate to encode
   ```
   
   @smolnar82 FYI ^^^

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to