Installing certificates via vapix api? #631
-
Has anyone successfully uploaded and installed a CA, server and private keys, or 802.1x certs via the vapix API? I am able to upload and install CA cert, even delete a cert. But unable to do anything else. Was wondering if someone has tried this, or even better, has some python code that works? The vapix documentations shows xml / soap with certificate payloads. See: https://www.axis.com/vapix-library/subjects/T10175981/section/t10161277/display Bottle of the finest pink champagne to the person with the best solution! |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 39 replies
-
This automatically generated reply acts as a friendly reminder. Answers to your questions will most often come from the community, from developers like yourself. You will, from time to time, find that Axis employees answers some of the questions, but this is not a guarantee. Think of the discussion forum as a complement to other support channels, not a replacement to any of them. If your question remains unanswered for a period of time, please revisit it to see whether it can be improved by following the guidelines listed in Axis support guidelines. |
Beta Was this translation helpful? Give feedback.
-
Hi @wiener-dog , |
Beta Was this translation helpful? Give feedback.
-
omg, that is amazing. I had no idea this type of tool existed. That is the exact api call that isn't working. I believe vapix api is a bit fussy with indentation for the soap call. Thank you very much, this will help. |
Beta Was this translation helpful? Give feedback.
-
Hey @vivekatoffice have you ever tried and managed to get working this SOAP call? https://www.axis.com/vapix-library/subjects/t10175981/section/t10161277/display?section=t10161277-t10177052 I've made a lot of progress, this one has me stumped. This api call returns a "Invalid Certificate Configuration Fault". Not hugely helpful. as it could be one of many issues. I can get all the other calls working, but this one. |
Beta Was this translation helpful? Give feedback.
-
I did this for a year or so i got all things working but oh boy where code is i doent Know. ;) |
Beta Was this translation helpful? Give feedback.
-
Hi @wiener-dog , |
Beta Was this translation helpful? Give feedback.
-
@wiener-dog did you need help or does it work know? |
Beta Was this translation helpful? Give feedback.
-
If I use a soap call to get all the certificates, from the camera, I see all those Axis device pre-installed certs, as well as our own self signed cert. In our case, when we generate our own certs, we set the subject / Name to the serial number of the camera. So an openssl x509 ..... |grep CN clearly shows the subject CN is set properly. So from a fundamentals point of view, it looks like the certs are there, and ours is installed correctly. I can set it as active via the GUI. But obviously don't want to. |
Beta Was this translation helpful? Give feedback.
-
omg, I'm an idiot. I installed the 802.1X certificate for the webservice.... which has the wrong CN. So now the interface is borked... |
Beta Was this translation helpful? Give feedback.
no internet server. So unpatched rhel and windows. That's all I have to work with.
Now, your http://192.168.171.103/axis-cgi/admin/param.cgi?action=list&group=HTTPS call gave me the full list of supported/needed ciphers. I didn't know I was supposed to do that and use those ciphers. So I extracted all of the required ciphers, cut and paste them in, there are 8 of them. And now IT WORKS!! Pink champagne for you!!!!